Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何从命令行启动 pkg?
使用open,相当于双击文件的命令行。
open
请试试这个:
sudo installer -pkg ~/yourdirectory/packagename.pkg -target ~/Applications/
或者
installer -pkg ~/yourdirectory/packagename.pkg -target ~/Applications/
在 sudoers 中使用以下行跳过密码:
jinith ALL=(ALL) NOPASSWD: ALL