PDA

View Full Version : [all variants] unneeded packages



hammeraxe
July 29th, 2008, 03:08 PM
when i install a program lots of dependencies are installed as well. now that i decide to remove a program only the program package is removed, but what about the other ones? i have a feeling that my harddisk is gradually filling up with unneeded stuff. is there a way to detect/remove the unneeded packages?

eightmillion
July 29th, 2008, 03:10 PM
The program deborphan can get help you find unneeded dependencies for you.

tuxxy
July 29th, 2008, 03:11 PM
If you are remving from command line, simply add a * to the command and it will remove the dependant file. Example below.


sudo apt-get remove firefox*

If your in synaptic it should do this for you.

SunnyRabbiera
July 29th, 2008, 03:13 PM
also the command sudo apt-get autoremove is good too

hammeraxe
July 29th, 2008, 03:22 PM
hey, thanks for the quick responses

Potatoj316
July 29th, 2008, 03:28 PM
also if you add and remove all your packages with aptitude (works the same as apt-get just substitute aptitude where you normally use apg-get) it will automatically remove unneeded packages.

hyper_ch
July 29th, 2008, 04:04 PM
and you also might want to delete the downloaded .deb files. I think synaptic has an option somewhere.

Nepherte
July 29th, 2008, 04:14 PM
and you also might want to delete the downloaded .deb files. I think synaptic has an option somewhere.
I believe either

sudo apt-get clean
or

sudo apt-get autoclean
would do the trick.