Solved

rpm --prefix

Posted on 2014-11-11
3
1,109 Views
Last Modified: 2014-11-12
I have an existing installation, and I would like to create a second (and separate) one

The problem is when you use the rpn commabd to install, it will try to install over the existing /opt/mqm

So I go to this site:
   
    http://www.redbooks.ibm.com/redbooks/pdfs/sg248087.pdf

Which says to use the rpm --prefix command:

    rpm --prefix /opt/my_mqm_inst -ivh <PackagesToInstall>

I examine my /opt directory

    ls
    mqm  rh

SO I try the following command:

    rpm --prefix /opt/mqm75 -ivh MQ*.rpm

Which returned the following:

    package MQSeriesMsg_Zh_TW-8.0.0-0.x86_64 (which is newer than MQSeriesMsg_Zh_TW-7.5.0-0.x86_64) is already installed
    package MQSeriesSamples-8.0.0-0.x86_64 (which is newer than MQSeriesSamples-7.5.0-0.x86_64) is already installed
    package MQSeriesSDK-8.0.0-0.x86_64 (which is newer than MQSeriesSDK-7.5.0-0.x86_64) is already installed

and when I go to the /opt directory, I see the following

    ls
    mqm  rh

Open in new window


So how do I use rpm to install on a different directory ?

Thanks
0
Comment
Question by:Anthony Lucia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 35

Expert Comment

by:Seth Simmons
ID: 40436219
put = after prefix

rpm --prefix=/opt/mqm75 -ivh MQ*.rpm
0
 

Author Comment

by:Anthony Lucia
ID: 40437547
I tried the following, but they did not work

[root@x240perf2 wmq75]# rpm --prefix=/opt/mqm75 MQ*.rpm
rpm: --prefix may only be used when installing new packages
[root@x240perf2 wmq75]# rpm -prefix=/opt/mqm75 MQ*.rpm
rpm: arguments to --root (-r) must begin with a /

Open in new window


How can I fix this ?
0
 
LVL 35

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 40437729
you left out the -i option
0

Featured Post

Is Your Team Achieving Their Full Potential?

74% of employees feel they are not achieving their full potential. With Linux Academy, not only will you strengthen your team's core competencies but also their knowledge of of the newest IT topics.

With new material every week, we'll make sure that you stay ahead of the game.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question