Installing OpenOffice in alternate directory with rpm

Issues with installing under all GNU/Linux Distributions
Post Reply
dougneuhauser
Posts: 1
Joined: Sat Aug 13, 2016 12:06 am

Installing OpenOffice in alternate directory with rpm

Post 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.
- Doug N
OpenOffice 4.1.2, RHEL 6.7
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: Installing linux openoffice in alternate directory with

Post 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.
AOO4/LO5 • Linux • Fedora 23
Post Reply