Page 1 of 1

Installing OpenOffice in alternate directory with rpm

Posted: Sat Aug 13, 2016 12:17 am
by dougneuhauser
I downloaded the openoffice 4.1.2 64-bit linux x86-64 rpms, and tried to use
"rpm -Uvh --relocate /opt=/share/apps RPMS/*.rpm RPMS/desktop-integration/openoffice4.1.2-redhat-*.rpm"
to install the package in the directory /share/apps rather than /opt. rpm indicated that at least one of the
packages could not relocate.

What is the appropriate way to install openoffice in a directory other than /opt?
I finally installed it /opt, then ran
mv /opt/openoffice4 /share/apps/
and openoffice appears to work correctly, but I would prefer to do the initial install in my desired destination.
Thanks.

Re: Installing linux openoffice in alternate directory with

Posted: Sat Aug 13, 2016 4:42 am
by acknak
I use this:

rpm -i --prefix /opt/aoodev/AOO412 *.rpm

I find that I have to include --nodeps to ignore dependency problems but you may want to try one first without that.