Take the 2-minute tour ×

I'm on a CentOS 4 machine. I updated and installed some packages a few weeks back, but I don't remember the name of every package or the names of every dependency. I used yum.

Can I list the packages on my system by the date they were last installed or updated?

share|improve this question

2 Answers 2

up vote 17 down vote accepted

To list all packages, sorted by install date, latest first:

    rpm -qa --last
share|improve this answer

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.)

share|improve this answer
Super helpful snippet, thanks! –  Peter Hanley Apr 25 at 14:24

Your Answer


