Forum How do I...?

Install prince to a custom directory?

aethf
I've tried installing the rpm to /apps however it says in not relocatable

aethf $ sudo rpm -Uvh --prefix=/apps prince-10r6-1.centos6.x86_64.rpm
error: package prince is not relocatable


Is there any work around to installing this to /apps instead of having it installed in /usr/lib/prince?

Any advice would be greatly appreciated!
mikeday
You can force the relocation and it should still work, but you will need to edit the shell script at /apps/bin/prince to have the correct path.
aethf
I'm not quite familiar with forcing the rpm relocation, any tips? I'm currently trying to look up the answer now but if you can get it to me before I do that would be dandy!
mikeday
You can use the --badreloc option, which sounds a little scary but should work fine.

Another option is to install the .tar.gz package for CentOS, which has an install script.
aethf
Thank you quite a bit!! I'm testing with it now and will look into this more tomorrow but I greatly appreciate your quick assist!!!!
aethf
Just one more quick question, I'm not seeing that shell script /apps/bin/prince

Could it perhaps be in /apps/prince/bin?
aethf
Disregard - I found it in /usr/lib....

It's been a long day! >_>
aethf
/usr/bin..... not /usr/lib....
mikeday
Actually checking back I think you could install with --relocate /usr=/apps
aethf
rpm -i --badreloc --relocate=/usr/lib=/apps prince-10r6-1.centos6.x86_64.rpm

This is what I used to to get the installation to the new dir and all seems well so far. Thank you!