LinuxQuestions.org
Help answer threads with 0 replies.
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 05-13-2010, 12:01 AM   #1
ghjunior
LQ Newbie
 
Registered: May 2010
Posts: 2

Rep: Reputation: 0
Make / Update


Hey guys, what is the correct process for updating an application installed via the './configure, make, make install' sequence?

For example, I have an app checked out via a git repository, on which I run the 'make install' on to install. Then a few days later I run a git pull to update to the latest release, do I just run the same sequence again or should I 'make uninstall' first? Many thanks!

Cheers,
ghjunior
 
Old 05-13-2010, 12:41 AM   #2
ajeetsinghraina
Member
 
Registered: May 2010
Location: India
Distribution: Ubuntu 7.04/8.04/8.10/10.04, RHEL 6, OpenSUSE,Mandriva,Fedora, CentOS, XandrOS, Slackware, OpenSolar
Posts: 155

Rep: Reputation: 55
Since self-compiled programs aren't recognized by the package management system, the only way to keep up-to-date is getting every updated source and compile it again.

Example:Synaptic (or any package manager) uses a respository to download and get new versions of software. If you did not install your program from a repository, you have to update it manually.

For pre-compiled software, I find it easier just to delete the old directory and extract the new version

Last edited by ajeetsinghraina; 05-13-2010 at 12:42 AM.
 
Old 05-13-2010, 02:16 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,063

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Quote:
Originally Posted by ghjunior View Post
Hey guys, what is the correct process for updating an application installed via the './configure, make, make install' sequence?

For example, I have an app checked out via a git repository, on which I run the 'make install' on to install. Then a few days later I run a git pull to update to the latest release, do I just run the same sequence again or should I 'make uninstall' first? Many thanks!

Cheers,
ghjunior
The only way to make sure that everything is clean is to make uninstall. Note that live code can change pretty quickly, and some of the files that were installed with the old version might have been moved or have disappeared.
 
Old 05-13-2010, 10:38 AM   #4
ghjunior
LQ Newbie
 
Registered: May 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Awesome, thanks guys.

So to recap, the flow would be more or less:

$ git clone REPO URL
$ cd REPO DIR
$ ./configure
$ make
$ make install

Then sometime in the future:

$ make uninstall
$ git pull
$ ./configure
$ make
$ make install

Would make distclean fit in anywhere in this (perhaps before or after make uninstall)?

Cheers,
Greg
 
  


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
How can I make my Update Manager work again? Indian-Art Linux - Desktop 6 05-02-2010 06:27 PM
Make all computer update to one PC joborohe Ubuntu 2 08-19-2009 06:13 PM
How To Make update2date Automatically Update JustinK101 Linux - Software 2 03-09-2007 07:29 PM
How to make it like you didn't apply an update royeo Linux - Newbie 1 11-02-2006 09:18 PM
Can't make auto-update (suse 9.1 ) starking Linux - Newbie 2 07-12-2004 09:42 AM


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