LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 09-29-2010, 06:37 PM   #1
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 32 x86_64
Posts: 514

Rep: Reputation: 47
How to install multiple versions of package?


Hullo All,
I do quite a bit of testing of a FOSS package, which I install from rpm.
At any one time there may be 3 versions ( current release, new release candidate, and snapshot of trunk) that I wish to test.
If I stick to normal naming conventions (i.e. current release fred-2010.0...rpm, release candidate fred-2010.2...rpm, and trunk fred-2010.3...rpm) it seems to me that I can only have one version installed at any one time.
Is there a 'proper' way of managing this (using the package manager), so that I can have multiple versions installed at any one time?

Cheers,
Terry
 
Old 09-30-2010, 10:50 AM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Not as far as I know ... rpm is designed to update packages with the same name. I've been able to work around it in the past by creating packages where the real version number becomes part of the name and a fake version is added. This allows you to install multiple versions without the latest one removing the previous installs

eg.

<jdk_1.6.0>-<1.0>.x86_64.rpm

cheers
 
1 members found this post helpful.
Old 09-30-2010, 11:20 AM   #3
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Have a look at --installroot option in yum's man page.
 
1 members found this post helpful.
Old 09-30-2010, 05:45 PM   #4
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 32 x86_64
Posts: 514

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by quanta View Post
Have a look at --installroot option in yum's man page.
Thanks for that advice, I have yet to try it but it looks promising.

Cheers,
Terry
 
Old 09-30-2010, 07:44 PM   #5
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
Quote:
Have a look at --installroot option in yum's man page
.. interesting idea, how would that work in practice, doesn't it work with the same package database ? .. or would you need to set up multiple chroot environments ?
 
Old 09-30-2010, 10:50 PM   #6
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 32 x86_64
Posts: 514

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by kbp View Post
.. interesting idea, how would that work in practice, doesn't it work with the same package database ? .. or would you need to set up multiple chroot environments ?
I tried (a few times) to do a localinstall using --installroot, but haven't had any luck. I get the following...

"[terry@phenom x86_64]$ sudo yum localinstall --nogpgcheck --installroot=/usr/local/hugin hugin-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm hugin-base-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm
Loaded plugins: presto, refresh-packagekit
Setting up Local Package Process
Examining hugin-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm: hugin-2010.2.0-0.3.20100929hg.fc13.x86_64
Marking hugin-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm to be installed
fedora/metalink | 17 kB 00:00
Could not parse metalink https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=x86_64 error was
No repomd file
Error: Cannot retrieve repository metadata (repomd.xml) for repository: fedora. Please verify its path and try again"

At this stage I'm not sure what to make of it.

Cheers,
Terry
 
Old 09-30-2010, 11:14 PM   #7
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
I haven't tested but could you please try again with --disablerepo='*' option.
 
Old 09-30-2010, 11:37 PM   #8
terry-duell
Member
 
Registered: Jan 2007
Location: Melbourne, Australia
Distribution: Fedora 32 x86_64
Posts: 514

Original Poster
Rep: Reputation: 47
Quote:
Originally Posted by quanta View Post
I haven't tested but could you please try again with --disablerepo='*' option.
Looks like it is expecting a complete new environment.
Here's what I get...

[terry@phenom x86_64]$ sudo yum localinstall --nogpgcheck --installroot=/usr/local/hugin --disablerepo='*' hugin-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm hugin-base-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm
Loaded plugins: presto, refresh-packagekit
Setting up Local Package Process
Examining hugin-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm: hugin-2010.2.0-0.3.20100929hg.fc13.x86_64
Marking hugin-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm to be installed
Examining hugin-base-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm: hugin-base-2010.2.0-0.3.20100929hg.fc13.x86_64
Marking hugin-base-2010.2.0-0.3.20100929hg.fc13.x86_64.rpm to be installed
Resolving Dependencies
--> Running transaction check
---> Package hugin.x86_64 0:2010.2.0-0.3.20100929hg.fc13 set to be installed
--> Processing Dependency: /bin/sh for package: hugin-2010.2.0-0.3.20100929hg.fc13.x86_64
.
.
[snip many dependency checks]

--> Finished Dependency Resolution
Error: Package: hugin-2010.2.0-0.3.20100929hg.fc13.x86_64 (/hugin-2010.2.0-0.3.20100929hg.fc13.x86_64)
Requires: libm.so.6(GLIBC_2.2.5)(64bit)
.
.
[snip many Requires:...]


Error: Package: hugin-2010.2.0-0.3.20100929hg.fc13.x86_64 (/hugin-2010.2.0-0.3.20100929hg.fc13.x86_64)
Requires: libGLU.so.1()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[terry@phenom x86_64]$

It is beginning to look like --installroot isn't really the answer to my original question. Thanks for trying to help.

The question remains.

Cheers,
Terry
 
Old 10-01-2010, 01:05 AM   #9
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
As kbp mentioned, I think you need to setup a chroot environment. Another way, for the testing purpose, I suggest you install one version from binary and compile another version(s) from source.
 
Old 10-01-2010, 09:14 AM   #10
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
The only time I've ever used --installroot was when booted into rescue mode to repair a broken install, as far as I can tell that's the arguments only purpose .. ?
 
Old 10-01-2010, 02:53 PM   #11
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,517

Rep: Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619Reputation: 2619
for multiple versions ( my case Celesta "official-1.6",svn-gnome","svn-qt4" )
and Gimp stable, daily( the whole build tree) i do source builds

on fedora it was too much of a pain to turn them into a rpm and "install" the rpm

for one easy but for 3 different versions ....
 
  


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
Different versions package from different user piccir Linux - Software 1 06-06-2010 03:45 AM
LXer: Install Multiple 'Bleeding Edge' Firefox Versions in Linux LXer Syndicated Linux News 0 03-24-2010 10:10 PM
LXer: HOWTO Install Multiple Wine Versions on One System LXer Syndicated Linux News 0 12-05-2009 05:21 PM
Pinning package versions DaveQB Ubuntu 1 03-31-2007 09:48 AM
Locking up: could multiple installed versions of same package be culprit? registering Linux - Software 2 01-17-2007 10:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

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