LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 10-14-2010, 01:17 AM   #1
nobitavn
LQ Newbie
 
Registered: Sep 2010
Posts: 17

Rep: Reputation: 0
How to upgrade tar.gz package.


Hi all,

I have installed apr-0.9.4-24.9 by rpm:
#rpm -ivh apr-0.9.4-24.9.i386.rpm

Now, i want to upgrade to newer version. I found apr-1.4.2.tar.gz
How to upgrade apr with tar.gz package?

Thanks,
 
Old 10-14-2010, 01:24 AM   #2
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,143
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
I would recommend remove rpm and install tar.gz package.
 
Old 10-14-2010, 03:27 AM   #3
aries_baluyot
Member
 
Registered: Oct 2010
Location: India
Distribution: Mandriva, Suse, Ubuntu, Centos, Maemo, Omnia Xp
Posts: 86

Rep: Reputation: -11
Quote:
Originally Posted by nobitavn View Post
Hi all,

I have installed apr-0.9.4-24.9 by rpm:
#rpm -ivh apr-0.9.4-24.9.i386.rpm

Now, i want to upgrade to newer version. I found apr-1.4.2.tar.gz
How to upgrade apr with tar.gz package?

Thanks,
go to add and remove software see more archives software there [mod_edit]removed[/mod_edit]

Last edited by Tinkster; 10-14-2010 at 02:42 PM.
 
Old 10-14-2010, 05:54 AM   #4
alan_ri
Senior Member
 
Registered: Dec 2007
Location: Croatia
Distribution: Debian GNU/Linux
Posts: 1,733
Blog Entries: 5

Rep: Reputation: 127Reputation: 127
Hi!

It would be helpful to know what distro are you using.

To install tar.gz package you usually have to untar it, that would be right click on it and select extract here or alike, then change to new directory and read what is written in INSTALL or READ ME files. Usually it's ./configure && make && make install commands that you need to run in the terminal, of course you need to cd to new directory and have all dependencies satisfied. And of course you need to have make and all the other build little things installed already.

Be aware that there is reason why your distro doesn't have a newer version of a package in the repos and it's advisable to install packages from the repos of your distro.

Regards, Alan.
 
Old 10-14-2010, 06:38 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
It's possible to convert tar.gz to rpm
http://kwave.sourceforge.net/doc/en/...rom_targz.html
or you can use checkinstall
http://asic-linux.com.mx/~izto/checkinstall/

Kind regards
 
Old 10-14-2010, 06:38 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Deleted double post due to slow connection.

Last edited by repo; 10-14-2010 at 07:09 AM.
 
Old 10-14-2010, 07:24 AM   #7
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Quote:
Originally Posted by alan_ri View Post
Be aware that there is reason why your distro doesn't have a newer version of a package in the repos and it's advisable to install packages from the repos of your distro.
Indeed. If you can't upgrade a package through your system's package manager, it does not necessarily mean that it's not possible, but there's a chance for that too if the version is a lot newer than what you have currently installed. It depends on the package and what has been changed; if the changes are minor (program internal things, like a small bugfix) you shouldn't have a problem, but if the changes make the program require a newer version of some core libraries for example, you can't just upgrade the program unless you upgrade other components as well. Those may or may not be easy to deal with...

Quote:
Originally Posted by nobitavn View Post
Hi all,

I have installed apr-0.9.4-24.9 by rpm:
#rpm -ivh apr-0.9.4-24.9.i386.rpm

Now, i want to upgrade to newer version. I found apr-1.4.2.tar.gz
How to upgrade apr with tar.gz package?

Thanks,
So you'd like to upgrade the apr package (Apache Portable Runtime or what?) from version 0.9.4 to version 1.4.2. All right, it's not a major version change (e.g. from 1.x to 2.x), but still I think there are quite a few upgrades between those two packages. If I were you, I'd read the changelogs carefully and/or check the requirements for those two versions and make sure you can actually run the newer version on your system without problems before proceeding to remove the existing package. You can probably revert the changes fairly easily, but it doesn't harm to make sure first.

One of the advantages of package management system such as RPM is that you can simply ask it to upgrade a package and it takes care of removing the old files and installing the new ones. If you mix different ways of "installing" software (which in most cases means "copying compiled/ready-to-use files from a working directory or an archive to your system"), you must make sure that you don't mess up. You should remove the old version using the same method it was installed with prior to installing the new version (if you "install over the old", you might end up either having old files around or breaking the removal of the old version properly). And always keep the old version at hand in case the new one does not work, so that you can easily reset the changes (in addition to having backups of your important data in case something goes terribly wrong ).
 
Old 10-14-2010, 02:43 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by aries_baluyot View Post
go to add and remove software see more archives software there [mod_edit]removed[/mod_edit]
Cut the personal attacks out
 
Old 10-15-2010, 01:19 AM   #9
prayag_pjs
Senior Member
 
Registered: Feb 2008
Location: Pune - India
Distribution: Fedora,RedHat,CentOS,Gentoo
Posts: 1,143
Blog Entries: 4

Rep: Reputation: 147Reputation: 147
Hi Aries and Leejohnli what are you trying to say?

You think this site is a fun site for both of you?

Please write in English!
 
  


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
BackUp & Restore with TAR (.tar / .tar.gz / .tar.bz2 / tar.Z) asgarcymed Linux - General 5 12-31-2006 02:53 AM
tar package 1.16 aikempshall Slackware 5 12-30-2006 04:37 PM
Will 'aptitude upgrade or dist-upgrade' downgrade manually installed deb package? Akhran Debian 3 03-14-2006 02:40 PM
Does apt-get install <package> upgrade the package if it is already installed? davidas Debian 4 04-05-2004 06:12 PM
Error while installing package.tar.tar isone Linux - Software 2 11-03-2003 11:58 AM


All times are GMT -5. The time now is 12:49 PM.

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