macOS上软件安装列表的获取方法


=Start=

缘由:

简单整理一下在macOS系统上如何获取软件安装列表的方法,方便后面有需要的时候参考。

正文:

参考解答:

方法总结:

  1. 查看 /Applications/ 目录
  2.  -> 关于本机 -> 系统报告 -> 软件 -> 应用程序
  3. 查找根目录下所有的.app(sudo find / -iname “*.app”)

通过终端命令的方式:

$ system_profiler SPApplicationsDataType
$ mdfind kMDItemContentTypeTree=com.apple.application-bundle -onlyin /
$ sudo find -x / -type d -name "*.app"

$ pkgutil --pkgs

简单来说就是,正常的macOS应用在安装之后都会在系统里的特定位置按照要求进行记录以方便用户/系统进行查看的,这种情况下通过第2种方式是可以拿全的;对于不正常的macOS应用,总会想办法绕过/不遵守这些规范,这种的获取起来就需要斗智斗勇了。

参考链接:

Enumerate All Installed Applications on OS X #best
https://stackoverflow.com/questions/15164132/enumerate-all-installed-applications-on-os-x

How to List All Applications on a Mac
https://osxdaily.com/2015/05/25/list-all-applications-mac-os-x/

How to get a complete list of all applications installed?
https://apple.stackexchange.com/questions/98826/how-to-get-a-complete-list-of-all-applications-installed

4 Ways to Generate a List of Installed Apps on Your Mac
https://www.makeuseof.com/tag/list-installed-apps-mac/

How to List All Applications on a Mac
https://www.howtogeek.com/409377/how-to-list-all-applications-on-a-mac/

How do I see a list of installed applications, packages, programs, etc. in Mac OS?
https://superuser.com/questions/1289745/how-do-i-see-a-list-of-installed-applications-packages-programs-etc-in-mac-o

How do I list all installed packages from the command line in bash / osX
https://superuser.com/questions/959767/how-do-i-list-all-installed-packages-from-the-command-line-in-bash-osx

List all installed software with version and date via terminal?
https://www.reddit.com/r/MacOS/comments/agv6y2/list_all_installed_software_with_version_and_date/

=END=


《“macOS上软件安装列表的获取方法”》 有 1 条评论

发表评论

您的电子邮箱地址不会被公开。