Skip to content

Instantly share code, notes, and snippets.

@pcolazurdo
Created May 10, 2013 12:20
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 pcolazurdo/5554080 to your computer and use it in GitHub Desktop.
Save pcolazurdo/5554080 to your computer and use it in GitHub Desktop.
Some useful RPM/yum shortcuts
#Installed packages sorted by date
rpm -qa --qf '%{INSTALLTIME} (%{INSTALLTIME:date}): %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -n >/tmp/installed.rpm
#List the content of a package
repoquery --list *package*
#Which Repository a Package was installed from
repoquery -i package
#What package a file belongs to
rpm -qf /path/to/file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment