Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@ouyi
Last active February 15, 2019 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ouyi/712c475a8f0c209492288c0e812bae6a to your computer and use it in GitHub Desktop.
Save ouyi/712c475a8f0c209492288c0e812bae6a to your computer and use it in GitHub Desktop.
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
debsums
# 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