LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 09-04-2005, 05:30 AM   #1
Jac Cox
LQ Newbie
 
Registered: Aug 2005
Location: Vlodrop, Netherlands
Distribution: It varies, mostly Red Hat uptil now
Posts: 2

Rep: Reputation: 0
Old software gone after upgrade?


Hello,

Didn't know if this was a "valid" question for Software, and since I still consider myself a newbie at Linux, I posted it here.

Here it goes:

Eventually I want to compile my own, optimized, 2.6.x-kernel for one of my machines.
To do this some software on the machine I want to use for compilation has to be upgraded.

One of these programs is "e2fsprogs". The installed version was 1.27. Minimum requirement was 1.29. I went and installed version 1.38 successfully, that is, "tune2fs" returns version number 1.38 instead of the earlier 1.27, so one can assume that the install went OK.

My question is: What happens to the old software? Is it replaced (where necessary) by new components, or is it left in place and will it "clutter up" my hard disk? Is this generally the case, and not only for "e2fsprogs"?

Not that I have a shortage in disk space, but I just would like to know.

Thanks in advance !!
 
Old 09-04-2005, 05:37 AM   #2
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
This depends on how you upgrade. If you do ./configure; make; make install or [i]rpm --install[/code] then this won't remove anything from your filesystem (although you can often do make uninstall to remove the old version of the package, from the same directory where you installed the old version, if you've kept the source code around).

If you use rpm --upgrade (or other package-manager upgrade commands) then the old software will be removed first.
 
Old 09-04-2005, 05:52 AM   #3
Jac Cox
LQ Newbie
 
Registered: Aug 2005
Location: Vlodrop, Netherlands
Distribution: It varies, mostly Red Hat uptil now
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for your clear answer. I didn't install using an RPM so the old software is still on my hard disk. This means I will, for the time being, go and search for RPM'ed editions of the software I need to upgrade.

Another question that pops in mind: How does Linux know which version of a certain program to use? In this case there are now two versions of "e2fsprogs" installed. The fact that "tune2fs" returns just one, the latest, version of the software, indicates that Linux doesn't get confused.

Any ideas on where and how Linux keeps track of these things?
 
Old 09-04-2005, 06:16 AM   #4
rjlee
Senior Member
 
Registered: Jul 2004
Distribution: Ubuntu 7.04
Posts: 1,990

Rep: Reputation: 67
The binary file /usr/bin/tune2fs will always be the file used. The previous file on the same path will probably be copied to a backup file when it's installed, although I guess it's possible that it could be overwritten depending on how the makefile is written.

For library files (/usr/lib/*.so files rather than executables), the executable name is actually a symbolic link to another file, which includes the version number of the library.
 
  


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
automate software upgrade searches bobwall Linux - Software 11 06-18-2005 02:22 PM
Looking for a Batch Software Upgrade tool zihui Linux - Software 1 04-13-2005 01:34 PM
How to upgrade / reinstall software from source merlin23 Linux - Newbie 8 01-13-2005 07:04 AM
What is the best way to upgrade software? zwyrbla Slackware 12 10-27-2004 07:22 PM
linux upgrade software Starman Linux - Software 2 08-12-2003 06:56 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration