LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-15-2008, 08:17 PM   #1
alexbib
LQ Newbie
 
Registered: Sep 2008
Location: Montreal, Canada
Distribution: debian sid
Posts: 16

Rep: Reputation: 0
how do you update software (from source)?


Hello,

How do I update software that I compiled from source? Do I have to uninstall it (and if so, how do I do that?), or do I just compile the newer source and make install will overwrite the previous version?

Thanks,
Alex
 
Old 09-15-2008, 08:49 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
well first you need to STILL have the original source code saved in say
/usr/src
example: mine for gimp
/usr/src/gimp-2.4.6
Code:
su - ( or sudo)
cd /usr/src/gimp-2.4.6
make uninstall 
cd ../gimp-2.4.7
exit
./configure --prefix=/usr --with-desktop-dir=/usr/share/applications
make 
su -
make install 
cd ../
rm -R gimp-2.4.6
 
Old 09-15-2008, 08:52 PM   #3
klearview
Member
 
Registered: Aug 2006
Location: London
Distribution: Debian, Kubuntu
Posts: 572

Rep: Reputation: 75
'make install' will not necessarily overwrite already installed files. Read README/INSTALL in source directory of both versions.

To uninstall you might be able to run 'make uninstall' in source directory of the old version (if Makefile provides for this - many packages do not provide for 'make uninstall' - in this case you'll just have to delete installed files by hand).
 
Old 09-15-2008, 08:54 PM   #4
nowshining
Member
 
Registered: Dec 2007
Distribution: Ibex
Posts: 93

Rep: Reputation: 15
make install should overwrite the install with the newer version.
 
Old 09-15-2008, 09:05 PM   #5
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
If the package uses GNU autotools, youll need to have the source configured exactly as you configured it for the install. That is, you either keep the source tree or remember the configure options you passed so you can re-create the Makefile. When the package comes with a Makefile hope it has an uninstall target.

If you plan to install a grunch 'o' packages from source, I recommend you use an app to keep track of what gets installed. Something like paco or installwatch. It will ease package removal. If you only plan to install a handful of packages from source, install them in your $HOME instead of system-wide.
 
Old 09-15-2008, 11:50 PM   #6
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
or if you have more than one install of the same program .For example I have the Celestia 1.5.1 installed system wide and the svn build in it's own directory /usr/opt/Celestia_svn .The same gor gimp and gimp svn ( gnome tree)

and if you did not add any tags to configure( or use the same tags) and do not have the old code still on the machine or you ran " make distclean " on the old code .Then make install on the NEW code " should ??"
over wright the old install .
 
  


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
New backup software fills huge open source software gap! gacott Linux - News 0 12-26-2007 02:57 PM
LXer: U.S. DoD software magazine highlights open source software LXer Syndicated Linux News 0 06-18-2007 09:16 PM
LXer: OpenLogic Announces Free Software to Inventory Installed Open Source Software LXer Syndicated Linux News 0 05-01-2007 01:01 AM
LXer: Red Hat to set up open-source software store: source LXer Syndicated Linux News 0 03-09-2007 02:16 PM
compiling software from source...how do i delete the folder w/ source? webazoid Linux - Software 2 07-01-2004 09:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:56 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
Open Source Consulting | Domain Registration