← Packages & Services
Linux · Packages & Services

How to show package information and files in Linux

Show a package version, description, file list, and dependencies with dnf/rpm and apt/dpkg.


Inspect a package: its version and description, the files it installs, and what it depends on.

# Package details
dnf info <pkg>          # RHEL/OL
apt show <pkg>          # Debian/Ubuntu

# Files installed by a package
rpm -ql <pkg>           # RHEL/OL
dpkg -L <pkg>           # Debian/Ubuntu

# Dependencies
dnf repoquery --requires <pkg>   # RHEL/OL
apt-cache depends <pkg>          # Debian/Ubuntu
Linuxrpmdpkg