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