Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 11-19-2007, 04:56 AM   #1
Registered: Oct 2007
Location: Philippines / Pilipinas
Distribution: FedoraCore5 :: Debian Etch
Posts: 37

Rep: Reputation: 15
Talking how do i uninstall installed packages in Debian?

Hello everyone!

I need help on uninstalling debian packages that i have installed..
can anyone show me??

thanks in advance!
Old 11-19-2007, 05:01 AM   #2
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
You can use synaptic and remove your packages. Or become root and type "apt-get remove nameofpackage". Or use aptitude, which is a bit more complicated.
Bear in mind that some of the dependencies won't be totally removed. What you can do is install deborphan, which tracks "some" of the left dependencies (libraries, mainly) and remove them after you've used apt-get remove.
Use also apt-get autoremove.
In any case, type man apt to get all the options.
Old 11-19-2007, 07:14 AM   #3
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Actually since the release of Etch you are supposed to use aptitude instead of apt-get. Aptitude is almost identical to apt-get, I'm unsure why you comment that it is more difficult.

aptitude remove <packagename> - uninstalls package


aptitude purge <packagename> - uninstalls package and removes configuration files.

the rest of aptitude is simple to:

aptitude update
aptitude keep-all
aptitude install
aptitude search <packagename>
aptitude upgrade
aptitude dist-upgrade

Aptitude does a good job of tracking dependencies so it can remove them later, but ONLY IF you use aptitude exclusively so it can track those dependencies... if aptitude didn't install a dependency, then it will not know it can remove one at a later date when the packages that called for it is removed.
Old 11-19-2007, 09:57 AM   #4
Registered: Oct 2004
Location: France, Provence
Distribution: Debian
Posts: 848

Rep: Reputation: 30
Just because I had a bad feeling out of it when the option to use a manual install was available on the standard netinstll (not the expert mode). Don't know if you can use it exclusively when you install, should be the default, now shouldn't it ? Why do package managers still use apt-get, then ?

Last edited by samael26; 11-19-2007 at 09:58 AM.
Old 11-19-2007, 10:01 AM   #5
LQ Guru
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Because there's really nothing wrong in apt-get that isn't wrong in the whole package management system. Debian's (as any operating systems') package management isn't perfect, and if you start filling the gaps with tweaks, you're going to have to do it forever.. rather think what you install, don't just take a install-remove-install-remove-rampage, and live well. And when the day comes your system just is too messy, take a clean wipeout-and-reinstall in cold blood - there are numerous options of doing this nicely without losing any personal data or having to necessarily backup everything.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Debian installation CD with currently installed packages. ciden Linux - Newbie 2 02-11-2007 10:10 AM
Unable to uninstall the multiple packages installed sudesh_blr Linux - General 1 09-18-2006 01:55 PM
how to uninstall packages installed with make salemd Linux - Newbie 5 04-20-2006 10:24 PM
list installed debian packages Fernandoch Debian 4 07-07-2005 05:16 AM
Successfully installed debian-how to add packages ninadb Linux - Newbie 2 09-15-2004 04:48 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration