Created
May 10, 2013 12:20
-
-
Save pcolazurdo/5554080 to your computer and use it in GitHub Desktop.
Some useful RPM/yum shortcuts
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
#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