Bug#35569: apt: apt needs a --deinstall option
Package: apt
Version: 0.1.9
(JCommons) is there any easy way for removing packages (like there is for
installing them)? (ie. for package being uninstalled: find all packages
it depends on & if nothing else depends on them, remove them
<njs> JCommons: umm, no, not really
<njs> JCommons: though you could, say, go through and dpkg -r all of your
non-end-user packages (the ones that you only have installed to meet
dependencies)
<njs> JCommons: doing this would fail, but it would mark them for removal
<njs> JCommons: then you could do dpkg -r --pending after every time you
removed an end-user package, and anything that no long had packages
depending on it would be removed
<njs> JCommons: that's one of the uglier hacks I've ever seen though :-)
-> JCommons ponders: apt-deinstall
-- System Information
Debian Release: 2.1
Kernel Version: Linux valinor 2.2.4-ac1 #6 SMP Sat Mar 27 14:45:50 PST 1999 i686 unknown
Versions of the packages apt depends on:
ii libc6 2.0.7.19981211 GNU C Library: shared libraries
ii libstdc++2.9 2.91.60-5 The GNU stdc++ library (egcs version)
--- Begin /etc/apt/sources.list (modified conffile)
deb http://http.us.debian.org/debian stable main contrib non-free
deb http://non-us.debian.org/debian-non-US stable non-US
deb http://www.debian.org/~jim/debian-gtk-gnome/gnome-stage-slink unstable main
--- End /etc/apt/sources.list
Reply to: