Sunday, July 06, 2008

The Command Line Way to Remove a Package's Unused Dependencies

When removing a package, if you want to also remove the unused dependencies associated with it, type the following:
sudo apt-get autoremove packagename


To also remove any configuration files with the dependencies, type:
sudo apt-get --purge autoremove packagename

No comments: