Skip to content

Instantly share code, notes, and snippets.

@davidwalter0
Last active August 9, 2017 02:50
Show Gist options
  • Save davidwalter0/fc0d0381e1e6b53dccb6c171adf94f7c to your computer and use it in GitHub Desktop.
Save davidwalter0/fc0d0381e1e6b53dccb6c171adf94f7c to your computer and use it in GitHub Desktop.
rpm -qa --qf '%{INSTALLTIME} (%{INSTALLTIME:date}): %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n'
To list all packages, sorted by install date, latest first:
rpm -qa --last
This should work on any RPM based machine:
rpm -qa --qf '%{INSTALLTIME} (%{INSTALLTIME:date}): %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' | sort -n
(To get a list of all possible tags, use rpm --querytags.)
https://unix.stackexchange.com/questions/2291/centos-list-the-installed-rpms-by-date-of-installation-update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment