LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-03-2004, 01:38 PM   #1
go_sooner
Member
 
Registered: Feb 2004
Location: Norman, OK, USA.
Distribution: Mandrake 10.0
Posts: 33

Rep: Reputation: 15
remove old software:


I want to remove old versions of the same software installed in the system. I want to keep only the recent version of files.

I could see entries like this

aclocal-1.4
aclocal-1.6

emacs-20.7
emacs20

and lot of entries like this in several folders.

I dont know how to purge all these files. Please help me.

Thanks.

Sooner.
 
Old 04-03-2004, 01:45 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
These multiple versions for aclocal, autoconf, automake etc, are for compatability reasons. but a simple apt-get remove ( --purge optional to get rid of any config files ) will remove them. aclocal is part of the automake package.

Also emacs20 emacs20-7 are probably the same package. emacs20 points to emacs20-7.
 
Old 04-04-2004, 01:18 PM   #3
go_sooner
Member
 
Registered: Feb 2004
Location: Norman, OK, USA.
Distribution: Mandrake 10.0
Posts: 33

Original Poster
Rep: Reputation: 15
thanks:

I did use the command, dselect and then in that remove any used software, as well as configure software, etc. after running them only, I found multiple versions of same software, or maybe as you said.

Thanks for the info.

Vgn
 
Old 04-04-2004, 02:25 PM   #4
geekzen
Member
 
Registered: Mar 2004
Location: Canada. The Great white north.
Distribution: Debian Sid
Posts: 183

Rep: Reputation: 30
If you want an interface to apt that works well, try aptitude. Its curses based, so it should run on just about anything, and makes package management a whole lot easier. (apt-get install aptitude)
 
Old 04-04-2004, 07:40 PM   #5
xcity
LQ Newbie
 
Registered: Mar 2004
Posts: 14

Rep: Reputation: 0
I think you need this command, apt-get autoclean
 
Old 04-06-2004, 05:30 PM   #6
waster
Member
 
Registered: Jan 2004
Location: London
Distribution: Debian
Posts: 33

Rep: Reputation: 15
apt-get autoclean just removes the old downloaded .deb files

after removing unwanted stuff using aptitude (excellent tool), use deborphan:

nb this is a bit risky, but you can generally get away with it;

apt-get remove --purge `deborphan`

(reverse single quotes)

Finally, run this script:

dpkg --purge `dpkg -l | rgrep ^.c.* | awk '{ print $2 }'`

which purges all config for packages which are not installed.
 
  


Reply



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
How to remove software completely ? naihe2010 Linux - Software 5 10-17-2005 12:01 AM
How to remove software at Debian sarge? Mathsniper Linux - Newbie 6 02-16-2005 08:51 AM
How to remove software RAID mikewelter Linux - Software 1 01-17-2005 09:47 PM
how to remove compiled software? greythorne Linux - Distributions 3 09-07-2004 03:16 AM
How do i remove a compiled piece of software? breakerfall Linux - Software 5 11-20-2003 02:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:55 PM.

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
Open Source Consulting | Domain Registration