RPM useful commands for the user. This is the most popular package utility in Redhat to install, query, remove, update, and verify. All the packages will end with the .rpm extension. We can list all rpm installed files and available packages in Linux using the command.
RPM useful Commands For User To Check Packages :
You will find two types of packages extensions in the Linux machine. one is .rpm and another one is noarch.rpm. when you use noarch.rpm architecture, it means we can install it on any architecture.
- Query a package is installed or not.
Check rpm signature
rpm –checksig pkg_name
rpm –qaR httpd
Install package without dependencies.
rpm –ivh –nodeps pkg_name
Check all files of the package.
rpm –ql httpd
List recent package installed.
rpm –qa –last
Upgrade a package:
rpm –Uvh pkg_name
rpm –e pkg_name
Remove package without dependencies
rpm –ev –nodeps httpd
Files related to a package:
rpm –qf pkg_name
Get information about the package before installing it.
rpm –qip pkg_name
You’re done rpm list available packages rpm list files in package rpm command in linux installed