Ever have a need to show a list of what packages were installed (or recently installed) by date on Ubuntu?
Say you are troubleshooting a problem and need to back-track on when a package was installed. Or if you are a Windows user who has switch to Ubuntu and is not familiar with how to check when a package was installed.
Fortunately there are a few ways to find out. In this article, we'll look at how to view installed packages by date using Synaptics Package Manager and from the command prompt using a Terminal window.
Using Synaptics Package Manager
To open Synaptics, on the top panel, click on System \ Administration \ Synaptics Package Manager.
If prompted, enter your password to proceed.
Once Synaptics Package Manager opens, from the menu, click on File \ History.
In the history window, you will see the dates of when packages were installed. Just click on the arrow next to the date to expand the list, then click on the date to view what packages (and their dependency) were installed on that day.
If you have a larger list (than mine), you can also search for packages using the Find search at the bottom.
Using Terminal Window
If you prefer to work at the command prompt, open a Terminal window by clicking on Application \Accessories \ Terminal.
At the prompt, you can view installed packages by date, by viewing the /var/log/dpkg.log file using the following command:
cat /var/log/dpkg.log | grep "\ install\ "
The dpkg.log file will rotate and archive weekly (for more information on log rotating see Ubuntu Guide For Windows Users: Manage Log File Size). If you don't see previous dates, then list the contents of the /var/log directory for dpkg log files that may exist.
To list the content of a directory, use the following command:
ls -l /var/log
To list just dpkg.log files, use the following command:
ls -l /var/log/dpkg*
Now that you know how to view installed packages by date, switching over to Ubuntu for Windows users should be a little less intimitading.