Skip to content

Instantly share code, notes, and snippets.

@PSJoshi
Created March 21, 2015 11:58
Show Gist options
  • Select an option

  • Save PSJoshi/d3ca2ea9b5203e8621b4 to your computer and use it in GitHub Desktop.

Select an option

Save PSJoshi/d3ca2ea9b5203e8621b4 to your computer and use it in GitHub Desktop.
RPM information
##compare rpm versions and lot of utilities related to rpm
# yum install rpmdevtools
## Information about repository -
# yum install yum-utils
You can also do:
# yum info openssl
# yumdb info 'python*'
Latest installed packages with rpm
$rpm -qa - -last | less
List contents of rpm
$rpm -qlp package_name
List contents of installed rpms:
$rpm -ql package_name
Find out what package a file belongs:
$rpm -qf file_name
List all installed packages
$rpm -qa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment