[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#367109: Ability to remove unused dependencies of a package when removing it with "apt-get remove"



Package: apt
Severity: wishlist

I would found very useful to have an option to remove all unused dependencies 
of a package when removing it. I insist on "WHEN REMOVING IT" because I know 
the existance of deborphan, but it's not why I want.

eg: apt-get remove --with-deps myapp
This command would remove the package "myapp" but also all its dependencies 
not used by any other installed package.
Obviously, it should ask for a confirmation before doing it:
"These packages will be removed because no other package depends on them 
anymore [Y/n]"

At the moment this can be made manualy with "apt-cache depends package" to see 
the dependencies of the package to remove and then with "apt-cache 
rdepends --installed" for each one of them to see if any other installed 
package depends on it. If not you can remove it.
What I would like is an automated way to do it :)



Reply to: