find ports that aren't required anymore

Mark Felder feld at
Sat Aug 31 19:41:37 UTC 2013

On Sat, Aug 31, 2013, at 14:19, Dale Scott wrote:
> I was using the postfix port, but decided to replace it with ssmtp to
> reduce
> ports in use and simplify system updating (deleting postfix with
> pkg_delete). Is it possible that deleting postfix will leave ports
> installed
> that aren't required anymore? Will pkg_delete also delete any
> dependencies
> no longer required? If I could have ports still installed that aren't
> required anymore? How can I find them now? Portmaster?

If you're using the old pkg format you'll want to use something like
pkg_cutleaves which is in ports.

If you're using the new pkg format you can simply run "pkg autoremove".

More information about the freebsd-questions mailing list