Last active
December 15, 2015 23:38
-
-
Save bertvv/5341221 to your computer and use it in GitHub Desktop.
Useful Yum and RPM tricks
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
# List files in a package | |
rpm -ql PACKAGE | |
# What package does a file belong to? | |
rpm -qf FILE # in currently installed packages | |
yum provides FILE # in all packages | |
# Print a list of manually installed packages | |
# credits: http://forums.fedoraforum.org/showpost.php?p=1606568&postcount=12 | |
yumdb search command_line "*install*" | grep command_line | sed 's/.*install//' | tr ' ' '\n' | sort -u | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment