rpm install command, installs files all over the place like: /usr/bin, /usr/sbin, /etc/, /usr/share
This way it's hard to figure out all the contents of the installation. Is it possible to force rpm to install everything in a single directory?
To convert revolutions per minute (RPM) to relative centrifugal force (RCF), or g force, use the following formula: RCF = (RPM)2 × 1.118 × 10-5 × r. Relative centrifugal force is dependent on the speed of rotation in RPM and the distance of the particles from the center of rotation.
How to Install a RPM Package Without Dependencies. If you know that all needed packages are already installed and RPM is just being stupid, you can ignore those dependencies by using the option –nodeps (no dependencies check) before installing the package.
You can use dpkg instead of apt-get which will give you more options. One of the option is to specify an installation directory. You can execute sudo dpkg -i file. deb --instdir=destdir where destdir is your desired installation directory.
In this example, we verify the new package name with the ls command. Then we will run an RPM query to see if the package we want to install exists in the RPM database, rpm -q <package name> . Next, we execute the RPM installation with the following command: rpm -Uvh <package name> .
you can use the --relocate
to change 1 directory of the install process
rpm -i --relocate /usr/sbin=/some/other/path/sbin packagename.rpm
or use --prefix
for the whole installation process
rpm -i --prefix=/some/other/path/ packagename.rpm
As noted elsewhere, don't do that.
However, if you want to see what files will be installed where:
rpm -qlp packagename.rpm
If you want to extract them to a different root to examine them (e.g. look at configuration files, etc), from a temporary directory:
rpm2cpio /path/to/rpm/packagename.rpm | cpio -div
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With