In <[EMAIL PROTECTED]>, Adam <[EMAIL PROTECTED]> typed:
> So, what I'd like to do is list all the ports installed on my box that
> have nothing dependant on them. In this way, I could start removing
> things that I don't need anymore. 
> 
> Is there any clever way to do this? I've toyed around with a few ideas,
> but haven't been able to come up with anything that works nicely.

Since you want to delete them, why don't you just use pkg_delete on
them. If they something depends on them, they won't be deleted.

So the recommended methodology is:

Put a sorted list of ports you know you want to keep in "keeps".

Generate a list of things to try and delete by

(cd /var/db/pkg; ls | sort) | comm -23 - keeps | xargs pkg_delete

and keep doing that as long as things are vanishing from /var/db/pkg.

        <mike
-- 
Mike Meyer <[EMAIL PROTECTED]>          http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to