rpm is the low-level package tool used by RPM-based Linux distributions. It is useful for inspecting installed packages and local RPM files, but day-to-day package management is normally handled through a higher-level tool such as dnf.
Common rpm checks
rpm -q package-name
rpm -qi package-name
rpm -ql package-name
rpm -qf /path/to/fileThese commands query whether a package is installed, show package information, list installed files, or identify which package owns a file.
Use dnf for dependency-aware installs
Installing or removing software directly with rpm bypasses the normal dependency-resolution workflow. On current Fedora and many related systems, prefer dnf install, dnf remove, and dnf upgrade for routine administration.