Solved

rpm --prefix

Posted on 2014-11-11
3
643 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
  • 2
3 Comments
 
LVL 34

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 34

Accepted Solution

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

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.

911 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now