简体   繁体   English

如何列出Mac OS X上所有已安装的软件包和版本?

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

I want to list all of the applications and versions installed on my mac. 我想列出Mac上安装的所有应用程序和版本。 Stuff like perl, php, etc., not the stuff you see in the Applications directory... Is there a unix command for that? 诸如perl,php等之类的东西,而不是您在Applications目录中看到的东西……是否有unix命令?

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

Not exactly a unix command but: 不完全是UNIX命令,但:

system_profiler -detailLevel full > myreport.txt might be a good start. system_profiler -detailLevel full > myreport.txt可能是一个好的开始。

There's an option to only list software (as there is an option to ouput xml) (read the manpage for the precise syntax). 有一个选项仅列出软件(因为有输出xml的选项)(有关详细语法,请阅读手册页)。 If you're using macports you could just run port installed . 如果您使用的是Macports,则可以运行port installed install。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM