Solved

rpm --prefix

Posted on 2014-11-11
3
557 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
Comment Utility
put = after prefix

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

Author Comment

by:Anthony Lucia
Comment Utility
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
Comment Utility
you left out the -i option
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
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.

743 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

17 Experts available now in Live!

Get 1:1 Help Now