How do I go about listing all of the installed packages and versions on mac os x?

左心房为你撑大大i 提交于 2019-12-11 00:05:40

问题


I want to list all of the applications and versions installed on my mac. Stuff like perl, php, etc., not the stuff you see in the Applications directory... Is there a unix command for that?


回答1:


Not exactly a unix command but:

system_profiler -detailLevel full > myreport.txt might be a good start.

There's an option to only list software (as there is an option to ouput xml) (read the manpage for the precise syntax). If you're using macports you could just run port installed.




回答2:


pkgutil --packages or cat /Library/Receipts/InstallHistory.plist



来源:https://stackoverflow.com/questions/2518610/how-do-i-go-about-listing-all-of-the-installed-packages-and-versions-on-mac-os-x

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!