Operating System - Linux
1755751 Members
4589 Online
108837 Solutions
New Discussion юеВ

Change install location of hpsmh rpm

 
Philip Montgomery
New Member

Change install location of hpsmh rpm

Is there a way to change the install path for the hpsmh rpm? It is trying to install to /usr/local, which is a network mount in our environment. I discussed this with a tech on the phone and he stated that we can not gain access to a src rpm.

Thanks,

-Phil
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Change install location of hpsmh rpm

try rpm -i --relocate options

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Gopi Sekar
Honored Contributor

Re: Change install location of hpsmh rpm


you can try this method:

rpm -ivh --relocate /usr/local/=

It will install hpsmh rpm and copy contents of /opt/hp to /opt/hp and relocate contents of /usr/local to the directory you specified.

But warning, the startup script /etc/init.d/hpsmhd should be modified to reflect the new directory.

Hope this helps,
Gopi
Never Never Never Giveup