Hands-on use of the rpm command to manage and inspect .rpm packages on RPM-based Linux. 28.04.2026 | reading time: 2 min The rpm command is the low-level package tool on RPM-based Linux distributions; use it to install, upgrade, remove, query and verify .rpm packages so you know exactly what changes a package makes to a system. Quick hands-on example Try this on a test machine to see rpm in action: ```bash sudo rpm -Uvh example-package-1.2.3-1.el8.x86_64.rpm warning: example-package-1.2.3-1.el8.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID abcdef12: NOKEY Preparing... ########################################### [100%] 1:example-package-1.2.3-1.el8.x86_64 rpm -qa | grep example-package example-package-1.2.3-1.el8.x86_64 rpm -ql example-package /usr/bin/example /usr/lib64/libexample.so rpm -V example-package # no output means files match package metadata sudo rpm -e example-package Removing : example-package-1.2.3-1.el8.x86_64 ``` Common commands you will use Use `-i` to install, `-U` to upgrade, `-e` to erase and `-q` to query; common forms are `rpm -ivh package.rpm`, `rpm -Uvh package.rpm`, `rpm -qa` to list installed packages, `rpm -ql package` to list package files and `rpm -V package` to verify integrity against the RPM database. Advanced options and cautions rpm manipulates the RPM database directly so use `--rebuilddb` to repair corruption, check signatures with `rpm -K package.rpm`, and avoid `--nodeps` or `--force` unless necessary because rpm does not resolve dependencies automatically; prefer a higher-level manager for dependency resolution on production systems. Tools that complement rpm Higher-level package managers such as dnf or yum handle dependency resolution and repositories, rpmbuild is used to build RPMs from spec files, and createrepo helps create local RPM repositories for deployment. Keep practicing and verify Practice on a throwaway VM, inspect package contents before installing and verify signatures when possible; deepen skills with structured study and consider exam paths to certify the knowledge. Join Bits & Bytes Academy First class LINUX exam preparation. utilities setup troubleshooting