I replaced Postfix with ssmtp recently, and wanted to check my FreeBSD server for any installed ports that are no longer needed. Thanks to Chris on the FreeBSD mail list, I have added some new portmaster flags to my tookit.
First, you may want verify your ports index by rebuilding it:
# cd /usr/ports # make index
Next, list the ports installed, grouped by:
- Root ports (No dependencies, not depended on)
- Trunk ports (No dependencies, are depended on)
- Branch ports (Have dependencies, are depended on)
- Leaf ports (Have dependencies, not depended on)
# portmaster -l
Finally, delete the leaf ports that you know you don’t need on their own:
# portmaster -e portname
Thanks, Chris.
Glad I could help! Cheers.