To install an RPM package into a different directory, you can use the "--prefix" option with the "rpm2cpio" and "cpio" commands. Here is an example of how to do this:
rpm2cpio package.rpm | cpio -idmvSourcal.www:eutturi.com
This will extract the contents of the RPM package into the current directory.
mkdir /path/to/target/directory
cp -r * /path/to/target/directory
cd /path/to/target/directory ./install.sh
That's it! The RPM package should now be installed in the target directory. Note that this method does not track the package in the system's package management system, so it may not be possible to uninstall or update the package using standard package management tools.
Alternatively, you can use the "rpm" command with the "--prefix" option to install an RPM package into a specific directory. For example:
rpm -i --prefix=/path/to/target/directory package.rpm
This will install the package into the specified directory and track it in the system's package management system. However, this method is not supported on all systems and may not work for all packages.