How to sort installed packages by date in Ubuntu

You can see the install log history in /var/log/apt/history.log, but apt do not keep track of date. But there is still ways to see the installation date of a package. /var/lib/dpkg/info/$packagename.list is created during the installation of the project. So, if you want to see the installed date of a package(say nginx), you need to run the following command

ls -l /var/lib/dpkg/info/nginx.list

To see the list of recently installed package, you can do this

ls -hlt /var/lib/dpkg/info/*.list

you can use -r option to sort in reverse order

Leave A Comment