Find unused ports?

Hi, I'm running FreeBSD 6.x with portupgrade installed and I'm looking for a way to find old installed unused ports in order to deinstall them and do some cleanup.

Is it possible, and if so how, to search for ports wich do not have any other ports depend on them?

That way I can go thought and deinstall ports wich I no longer use or need.

All help is appreciated, thanks.
 
What ports are unused ports? I execute pkg_cutleaves and pkg_rmleaves, the output ports are the same. But some ports listed I know is required to build other ports. How to explain this?
 
I think these utilities only consider runtime dependencies (required to run the port), not 'buildtime' dependencies (required to build the port). So you'll find things like autoconf and automake in there. Deinstalling them is not a problem. If a new port installation needs them, they will simply be reinstalled.
 
Back
Top