LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 11-19-2007, 05:56 AM   #1
webb.ryan
Member
 
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!
~Ryan
 
Old 11-19-2007, 06:01 AM   #2
samael26
Member
 
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.
cheers
 
Old 11-19-2007, 08:14 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Willoughby, Ohio
Distribution: linuxdebian
Posts: 7,232
Blog Entries: 5

Rep: Reputation: 190Reputation: 190
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

or

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, 10:57 AM   #4
samael26
Member
 
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 10:58 AM.
 
Old 11-19-2007, 11:01 AM   #5
b0uncer
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.
 
  


Reply


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 11:10 AM
Unable to uninstall the multiple packages installed sudesh_blr Linux - General 1 09-18-2006 02:55 PM
how to uninstall packages installed with make salemd Linux - Newbie 5 04-20-2006 11:24 PM
list installed debian packages Fernandoch Debian 4 07-07-2005 06:16 AM
Successfully installed debian-how to add packages ninadb Linux - Newbie 2 09-15-2004 05:48 AM


All times are GMT -5. The time now is 02:39 AM.

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