On 6/16/07, Johannes Winkelmann <jw@smts.ch> wrote:
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,
"pkgfoster" is good but it asks for name, function and knowledge of every package installed on the system and i think to know that is quite tedious task.
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
i think i will enjoy it :-) it comes as a relpacement for "pacman -Rcs" or "emerge -C && emerge --depclean"
References: 1. http://lists.crux.nu/pipermail/crux/2007-May/007510.html
hey.. that's me -) -- http://arnuld.blogspot.com/