开发者

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

开发者 https://www.devze.com 2022-12-24 08:54 出处:网络
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... 开发者_如何学Go Is there a unix command for t

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... 开发者_如何学Go Is there a unix command for that?


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


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.


You can use command for get installed apps list

Json and xml output is available.

system_profiler SPApplicationsDataType -xml

system_profiler SPApplicationsDataType -json
0

精彩评论

暂无评论...
验证码 换一张
取 消