Hi Nathan, On Mon, Jun 11, 2007 at 11:49:37 -0500, Nathan Ladd wrote:
On 6/9/07, Johannes Winkelmann <jw@smts.ch> wrote:
At the risk of pointing out the obvious, there's a tool called pkgfoster which is included in opt/prt-utils [1] which looks for ports which have no dependencies. Unlike prt-get, it's interactive, so it'll ask for before installing a port, and will remember the decision.
Since it's interactive, I considered pkgfoster to really be a tool to assist manual dependency removal.
Not sure if this is of any help, but I just tried a tool which pulled in a couple of new deps, and when I wanted to get rid of them I though I'd make the script somewhat more elaborate than necessary to maybe make it useful for others. It basically does what Alan and I discussed in [1], removing dependencies which have no dependent ports, but it'll ask for every package to make sure we can avoid the 'obconf/openbox' problem mentioned in an earlier mail in this thread. It is not trying to be smart and detect binaries or optional dependency stuff, so that's still up to the user; however, it might be more convenient than pkgfoster in a case where you want to get rid of a specific dependency subtree, like in the gnome-terminal use case (BTW if anyone does the gnome-terminal test, please let me know about the results :-)). You can have a look at the script here http://jw.smts.ch/files/crux/dep-remove The session could look like this: # ./dep-remove gst-plugins-good Remove 'gst-plugins-good' (y/N) ? y Remove 'gst-plugins-base' (y/N) ? y Remove 'libvisual' (y/N) ? y Remove 'libtheora' (y/N) ? y Remove 'gstreamer' (y/N) ? y Remove 'liboil' (y/N) ? y Log available in '/tmp/dep-remove-2467.log' # cat '/tmp/dep-remove-2467.log' Remove log for dep-remove gst-plugins-good Removed: gst-plugins-good Removed: gst-plugins-base Removed: libvisual Removed: libtheora Removed: gstreamer Removed: liboil # Enjoy, Johannes References: 1. http://lists.crux.nu/pipermail/crux/2007-May/007510.html -- Johannes Winkelmann mailto:jw@smts.ch Zurich, Switzerland http://jw.smts.ch