List of installed MacPorts without dependencies

后端 未结 2 783
[愿得一人]
[愿得一人] 2021-02-01 06:19

When I do port installed, I get useless list of hundreds of items. However, only a handful of these are ports I actually installed first-hand. The rest are dependen

相关标签:
2条回答
  • 2021-02-01 07:18

    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).

    0 讨论(0)
  • 2021-02-01 07:22

    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.

    0 讨论(0)
提交回复
热议问题