Last active
February 15, 2019 18:45
-
-
Save ouyi/712c475a8f0c209492288c0e812bae6a to your computer and use it in GitHub Desktop.
Frequently used package management commands on popular Linux systems
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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