LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 02-26-2002, 09:19 AM   #1
JHuizingh
Member
 
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Rep: Reputation: 15
Removing Obsolete Software


I have been wondering, when you install software from source code, what is the best way to get rid of all the files from the older version of that software?

For instance, I just installed IPTables 1.2.5 from source, but before that I had 1.2.2.

It seems to me that the system could get very cluttered with old files if you do not clean the unneeded ones somehow.
 
Old 02-26-2002, 10:03 AM   #2
Mik
Senior Member
 
Registered: Dec 2001
Location: The Netherlands
Distribution: Ubuntu
Posts: 1,316

Rep: Reputation: 47
If you are just upgrading to a newer version then you shouldn't really have a problem. Most of the time the older version will just get overwritten with the newer version.
If you really want to make sure each file which isn't needed anymore will definetly get removed you'll need to use some kind of package manager which keeps track of each file installed each time and would allow you to remove all the changes.
 
Old 02-26-2002, 11:56 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
If you installed the original (1.2.2) from source, you could do a make uninstall for that version before you install the newer one. I wouldn't have thought, though, that it'd make too much difference, so why not just keep the old version in there aswell? Any file that has a newer counterpart will be overwritten, and if you start removing files that were used by the older version but no longer used by the newer one, other programs that were dependant on it (and don't know that you've installed a newer version) might go a little awol on you.
 
Old 02-26-2002, 01:43 PM   #4
JHuizingh
Member
 
Registered: Jun 2001
Distribution: Gentoo 1.4
Posts: 140

Original Poster
Rep: Reputation: 15
Well, I'm not too worried about this issue, but the I posted the topic just to get some general information. In the example I'm talking about, the original version came with the distro, and then I installed the new version from source. I did a 'whereis iptables' and there were two different versions of the iptables binary. The newest one is the one that gets called, so I'm not too worried about it. I was just wondering what other people do.
 
Old 02-26-2002, 02:17 PM   #5
marlaina1
Member
 
Registered: Jun 2001
Location: Houston
Distribution: CentOS 5.3
Posts: 139

Rep: Reputation: 15
Well, I most likely do everything the hard way since I know so little, but I don't do an update on source programs. First I remove all the old one before installing the new one. I use locate which will find a lot of the previous files and remove one by one. If you go into the directory of the old source program there may be an uninstall file you can use before you install the newer one. Also in that directory a list of all the files may be in a sub-directory you can remove one by one, or find them in the description of the old program where you originally downloaded it.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing software toes Mandriva 3 03-18-2005 12:26 PM
Removing software Ungluun Slackware 2 07-16-2004 08:08 PM
Removing software Jimi_l Fedora 5 07-02-2004 10:44 PM
removing obsolete files in APT m_yates Debian 1 11-15-2003 06:57 PM
Removing Installed Software SirLancelotX Slackware 3 07-14-2003 12:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:41 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