Skip to content

Instantly share code, notes, and snippets.

@bertvv
Last active December 15, 2015 23:38
Show Gist options
  • Save bertvv/5341221 to your computer and use it in GitHub Desktop.
Save bertvv/5341221 to your computer and use it in GitHub Desktop.
Useful Yum and RPM tricks
# 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