Is there any command to list which applications have been installed today via apt-get or dpkg? Is there any other way to find this information?


Look in /var/log/apt/history.log. That's where the record is kept.


To see packages installed with dpkg or a package manage different to apt we may scan /var/log/dpkg.log. To reveal the history may use a function posted earlier:


You could probably get a little more perverse (and precise) than this, if you need the output for scripting, for example, but if you're just looking for a day's activity:

$ date +"%Y-%m-%d" | xargs -i% sed -n "/%/,/%/p" /var/log/apt/history.log
Start-Date: 2013-06-18  14:24:33
Commandline: apt-get install workrave
Install: workrave:amd64 (1.10-0ubuntu2), workrave-data:amd64 (1.10-0ubuntu2, automatic), libgdome2-0:amd64 (0.8.1+debian-4.1build1, automatic)
End-Date: 2013-06-18  14:24:40
Start-Date: 2013-06-18  16:58:40
Commandline: apt-get dist-upgrade
Install: linux-image-3.8.0-26-generic:amd64 (3.8.0-26.38, automatic), linux-headers-3.8.0-26:amd64 (3.8.0-26.38, automatic), linux-tools-3.8.0-26:amd64 (3.8.0-26.38, automatic), linux-headers-3.8.0-26-generic:amd64 (3.8.0-26.38, automatic), linux-image-extra-3.8.0-26-generic:amd64 (3.8.0-26.38, automatic)
Upgrade: linux-tools:amd64 (,, linux-generic:amd64 (,, linux-headers-generic:amd64 (,, linux-image-generic:amd64 (,, linux-tools-common:amd64 (3.8.0-25.37, 3.8.0-26.38), linux-libc-dev:amd64 (3.8.0-25.37, 3.8.0-26.38)
End-Date: 2013-06-18  17:00:07

You can run

dpkg --get-selections

to get installed packages.

If you're looking for something specific you can use grep to list, for example, PHP packages like this:

dpkg --get-selections | grep php'

To get paths of a specific packages, lets say php5, run this

dpkg -L php5

You can read more in this guide right here: http://www.howtogeek.com/howto/linux/show-the-list-of-installed-packages-on-ubuntu-or-debian/ or in the manual by running.

man dpkg
  • Yes, but this shows all applications installed. I need to display recently installed apps e.g. today or since 2 days. – wakeup Mar 17 '13 at 16:28
  • Please update your question, with that information. – Frederik Spang Mar 18 '13 at 9:40

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.