when you face ""installer error trying to locate volume at"

    xiaoxiao2022-07-13  166

    https://superuser.com/questions/416897/how-do-i-set-the-target-parameter-for-package-installs-in-os-x

     

    I have installed some osx system use the command:

    sudo installer -pkg [path] -target /Volumes/OSX

    it works always, 

    but today I would like to install java which the installer command, I get the error as the title.  after google I found this article is useful, https://superuser.com/questions/416897/how-do-i-set-the-target-parameter-for-package-installs-in-os-x

    In a world:

    the pkg know where the decompress files should put, so you just need to put / behind -target parameter, the command as below:

    sudo installer -pkg [path] -target /

     

    最新回复(0)