How do I install into a directory other than the default one
Question
How
do I install into a directory other than /usr/local/dncauser
?
Answer
tpcinstaller.sh
date
and version: 2007/07/05, revision 17.You can relocate the
Discover-DNCA package to a directory other than the default /usr/local/dncauser
.
You specify the alternate directory by using the rpm command's --prefix
option
along with the installation and upgrade commands.
Following are some sample rpm invocations:
rpm -i --prefix=/opt/Discover Discover-DNCA-12.1-0.RHEL8.x86_64.rpm
rpm -U --prefix=/home/Discover Discover-DNCA-12.1-0.RHEL8.x86_64.rpm
When you do not use the --prefix
option
during an installation or upgrade, RPM uses the default installation
directory that is specified in the Discover-DNCA package file, which
is /usr/local/dncauser
. Once you relocate a package,
you must consistently specify the alternate directory so that the
package correctly checks for and updates previous installations.
If you are using the installer script, tpcinstaller.sh
,
you can specify environment variable TPCINSTALLPREFIX
before
you start the script to install the Discover-DNCA package.
If
you do not specify the environment variable TPCINSTALLPREFIX
before
you start the script, it determines the current installation prefix
and automatically pass it along to the RPM commands it runs. If the
package is not currently installed or is not a relocatable version,
the default directory, /usr/local/dncauser
, is used
by the Discover-DNCA package.
Following is a sample invocation
of the tpcinstaller.sh
script.
env TPCINSTALLPREFIX=/opt/Discover /etc/opt/tpcinstaller.sh \
Discover-DNCA-12.1-0.RHEL8.x86_64.rpm