Skip to content

Instantly share code, notes, and snippets.

Last active Feb 15, 2019
What would you like to do?
Frequently used package management commands on popular Linux systems
# Find the owning package of a file / which package installed this file
rpm -qf my_file_or_dir
dpkg -S filename_search_pattern
# List all files of a package
rpm -ql package_name
dpkg -L package_name
pip show -f package_name
# Verify an installed package's integrity
rpm -V package_name
# List a package's dependencies
yum deplist package_name
apt-cache depends package_name
# List packages depending on a package
rpm -q --whatrequires packag_ename
apt-cache rdepends packag_ename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment