如何列出Mac OS X上所有已安装的软件包和版本? [英] How do I go about listing all of the installed packages and versions on mac os x?

查看:778
本文介绍了如何列出Mac OS X上所有已安装的软件包和版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想列出Mac上安装的所有应用程序和版本.诸如perl,php等之类的东西,而不是您在应用程序"目录中看到的东西……是否有unix命令?

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?

推荐答案

不完全是 unix 命令,但:

system_profiler -detailLevel full > myreport.txt可能是一个好的开始.

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

有一个仅列出软件的选项(因为有输出xml的选项)(有关详细语法,请阅读手册页). 如果您使用的是Macports,则可以运行port installed.

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.

这篇关于如何列出Mac OS X上所有已安装的软件包和版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆