Install to a Non-Default Location on Linux
You can use the rpm --relocate option to specify new target locations for installed files. Two modifications are supported.
- Specify a new target location for configuration files and keys that are installed by default to /etc/ssh2.
- Specify a new target location for binaries and man pages that are installed by default to /usr.
The following installed items are not relocated: startup and shutdown scripts, the cryptographic module, and the PKI client library.
To install to a non-standard location
- Create the target directories.
- Use the rpm --relocate option to specify your target directories. The general syntax is:
rpm --install --relocate /usr=PrefixDir --relocate /etc/ssh2=SysConfDir package_file.rpm
For example
rpm --install --relocate /usr=/opt/rsit --relocate /etc/ssh2=/opt/rsit/etc rsit-server-7.2.0.999-i386-rhel.rpm
Notes:
- Use --relocate modifications to the installation only as described above. Using other modifications will likely result in an unusable installation.
- To provide access to binaries and man pages after installing to a non-default location, modify the system PATH and MANPATH variables.
|