Solved

rpm --prefix

Posted on 2014-11-11
3
740 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

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
expectj telnet failing 5 36
Setting up static IP - Ubuntu server 16.04 12 65
installing docker on ubuntu 6 29
Run DOS2UNIX and then execute the command 21 71
Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
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…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

803 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