Visit Jeremy's Blog.
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 09-24-2009, 04:17 PM   #1
Senior Member
Registered: May 2008
Distribution: Slackware
Posts: 1,033

Rep: Reputation: 69
Updating a program...

Let's say I have a program like postgresql 8.2, which currently has 8.4 out at the moment. I have postgresql 8.2 installed and fully functional, where it gets loaded and shutdown on boot up and boot down. Let's say I can't find an svn link to update postgresql to 8.4. I download postgresql 8.4 and install it. Does it automatically overwrite the old version? Will it interfere? What I need to uninstall postgresql 8.2 first? What if I don't have a package manager and what if postgresql 8.2 wasn't installed via package(meaning I can't use removepkg).

How does linux handle these situations?
Old 09-24-2009, 04:33 PM   #2
Senior Member
Registered: Mar 2002
Location: Los Angeles, CA
Distribution: Debian, Ubuntu
Posts: 1,334

Rep: Reputation: 51
At the end of the day, to uninstall is to delete... "uninstalling" just knows all the files that were installed, so it can delete them easier (sometimes it changes a config, but usually it's just deletes all appropriate files - including init scripts and the like).

That being said, if you previously compiled and installed a package from source and you you compile and install the new package from source, there's a good chance you will overwrite the last one. Of course, you can change that by passing in "--prefix" to the configure step of compilation. If you do not install the new version over the top of the old version, then you will have two potentially working copies of postgres... your init scripts will be the things that determine which ones are running at any one time.

Will there be conflicts if you run two versions? Almost definitely as they will both be using the same same ports, socket files, etc. - at least without some special configuration.
Will there be conflicts if you overwrite the old one with the new one? Probably not, assuming you properly shut down the old one before overwriting.

If you did not install via a package manager, "linux" knows nothing about what it can potentially run - only what it's currently running, so, that being the case, you're on your own when it comes to removal of the software. That said, often times the makefile that built the app with "make install" will often have a "make uninstall" that will go through and delete all the necessary files. You'll just need to be sure to stop the application before uninstalling.
Old 09-24-2009, 04:58 PM   #3
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Just to underline part of what BrianK said, if it's at all possible, I definitely recommend removing the older program first. Also, before you install the new version, I'd suggest using Slackware's tools like makepkg or something that uses them in turn, like SBo's postgres buildscripts to create a proper Slackware package. Then you will be able to use the pkgtools in the future. If you don't have the source or the source lacks the uninstall target, then you'll need to clean out by hand as best you can and hope for the best.


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
why is bind updating reverse zone with updating zone marcobjorge Linux - Networking 5 10-12-2008 05:53 AM
Updating VMWare After Updating CentOS Linux31 Red Hat 2 09-18-2007 03:49 PM
Updating a Program tim1348 Linux - Newbie 1 12-31-2006 01:32 PM
Total recovery: Which program? ghost4linux, YaST2? Best drive imaging program? lagu2653 Linux - Software 1 06-20-2005 02:44 PM
Gtk-Warning but program still works... I close konsole, program closes Laptop2250 Linux - Software 2 11-15-2003 12:18 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:20 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration