United States (change)
Shortcuts: Downloads Fedora Red Hat Network
Account Links: Cart Your Account Logout
rpm -ivh somepackage.x.y-z.<arch>.rpm
rpm -Uvh somepackage.1.1-5.i386.rpm
rpm -e somepackage
Note: Red Hat Enterprise Linux is multi-lib capable. If you have packages installed for multiple architectures you can remove a package for a specific architecture with the following syntax: rpm -e <packagename.version.arch>
rpm -e somepackage.1.1-5.x86_64
--force will overwrite files that are owned by other packages. --nodeps will install even if the package needs packages that were not installed.
rpm -q somepackage
rpm -qi somepackage
rpm -ql somepackage
rpm -qf /usr/bin/some_executable
One can usually join various query commands together, so rpm -qil will give info and list all the files in the package.
To look at an RPM filename that is not installed, you add the p to the query line.
rpm -qilp somepackage.1.1-4.i386.rpm
This will list the information and the files contained in <somepackage>. More advanced usage can be found in the man page for RPM and at the website, http://www.rpm.org.
To see what files on the system may have changed from their initial settings, you can use RPM to check up on them.
The command rpm -Va will give you a list of all files that have changed in one form or another since the package associated with it was installed. This can be a lot of files (and a lot may be changed due to post installation work). To just see what packages have changed so that you can verify them more individually, you can do the following:
rpm -Va --pipe "awk '{print $2}' | xargs rpm -qf | sort -u" &> /tmp/file1
Then look in the file /tmp/file1 to see all of the packages that have been changed after their installation.