Solved

rpm --prefix

Posted on 2014-11-11
3
1,027 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Zimbra on Amazon Linux help 7 158
HOw To Install Docker on VMware Workstation 19 632
Redhat upgrade 1 68
rsyslog raw message 4 60
Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

734 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