List of installed MacPorts without dependencies

家住魔仙堡 提交于 2019-12-02 22:00:19
Clemens Lang

MacPorts has the concept of requested and unrequested ports.

Try port installed requested.

See man 1 port for more information on 'requestedness' and pseudo-targets.

To get a list of literally all installed ports that nothing depends on, you can run

for port in $(port echo installed | awk '{print $1}'); do [ -z "$(port echo installed and depends:$port)" ] && echo $port; done

(warning: this will take a while).

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