LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
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 12-20-2004, 11:41 PM   #1
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Rep: Reputation: 30
How to upgrade tarball?


Dear all,

I need to upgrade a tarball which i have installed. Do I simply install the new version and it will automatically overwrite the files from the older version?

I know for rpm -Uvh can do that, but not sure tarball.

any help?

Thanks in advance,
 
Old 12-21-2004, 12:07 AM   #2
reynacho_au
Member
 
Registered: Nov 2004
Distribution: Mandrake 10.1
Posts: 43

Rep: Reputation: 15
consider this, a tarball is just like a zip file. It's just a folder compressed into 1 file. So you are really not upgrading anything. It's the same as if you have a folder called "program1.0" and one called "program 1.1". You are going to delete the 1.0 one and replace it with 1.1. However, if within the tarball is an installer, then you've got a whole different issue.
 
Old 12-21-2004, 12:18 AM   #3
Niceman2005
Member
 
Registered: Nov 2004
Distribution: Fedora Core 2
Posts: 330

Original Poster
Rep: Reputation: 30
Thanks reynacho_au,

Yeah, actually I made a mistake in my question. What I mean is a tarball with installed in it.

So to upgrade , do I just run a ./configure , make, make install for the newer version and it will replace the older version?

Thanks again,
 
Old 12-21-2004, 01:08 AM   #4
DaHammer
Member
 
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
The safe play is to read the INSTALL, README & CHANGELOG files for tips on upgrading, as well as what changed. "Usually" though, so long as you configure it the same way, ie same install prefix & etc etc (you can get the old info from the config.log, config.nice or some other file in the old source tree if you kept it), you can install one over the other without issue, if you stay within the same major release level. By that I mean most source is released as x.y.z where x = Major, y = Minor, & z = Revision. If that Major number changes then you should probably backup any config files for the app and uninstall it, then install the new version fresh and reference your old config files for setting it back up. Still though, don't just blindly follow that, take the time to read the docs.

Last edited by DaHammer; 12-21-2004 at 01:10 AM.
 
Old 12-21-2004, 02:25 AM   #5
whipermr5
Member
 
Registered: Dec 2004
Location: Singapore
Distribution: Fedora Core 5 Linux
Posts: 202

Rep: Reputation: 30
On your previous tarball, do a make uninstall, then ./configure, make and make install the new tarball.
 
Old 12-21-2004, 02:35 AM   #6
Haiyadragon
Member
 
Registered: Sep 2003
Location: Gorredijk, Netherlands
Distribution: Arch Linux
Posts: 400

Rep: Reputation: 30
But some (or most really) don't have a make uninstall and if you really want to do a clean upgrade you'll have to remove all old files by hand. This is why I only install packages (checkinstall is my best friend).
 
  


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
Prob's with Tarball Wavz Linux - Software 6 01-22-2007 06:36 AM
Tarball Nightmare little_penguin Linux - Software 2 02-09-2005 05:59 PM
After Tarball then what ? sevvy8 Linux - Newbie 2 03-29-2004 03:41 AM
tarball problem bmrtin Linux - Newbie 4 01-14-2004 07:19 AM
Tarball? HardcoreGamer Linux - Software 4 02-12-2003 02:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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