Ubuntu Linux List Package Install, Upgrade, Removal Date and Time

Fig.01: Ubuntu Linux List Package Install Upgrade Date and Time

Fig.01: Ubuntu Linux List Package Install Upgrade Date and Time

Type the following command to list packages by installation date or upgrade date on a Debian or Ubuntu or Mint Linux:
# grep install /var/log/dpkg.log
To see info about upgrade:
# grep upgrade /var/log/dpkg.log
Sample outputs:

2016-01-06 14:03:27 upgrade libpng12-0:amd64 1.2.50-1ubuntu2.14.04.1 1.2.50-1ubuntu2.14.04.2
2016-01-10 13:41:54 upgrade libgnutls-openssl27:amd64 2.12.23-12ubuntu2.3 2.12.23-12ubuntu2.4
2016-01-10 13:41:54 upgrade libgnutls26:amd64 2.12.23-12ubuntu2.3 2.12.23-12ubuntu2.4
2016-01-14 13:27:15 upgrade gcc-4.9-base:amd64 4.9.1-0ubuntu1 4.9.3-0ubuntu4
2016-01-14 13:27:15 upgrade libgcc1:amd64 1:4.9.1-0ubuntu1 1:4.9.3-0ubuntu4
2016-01-14 13:27:15 upgrade isc-dhcp-client:amd64 4.2.4-7ubuntu12.3 4.2.4-7ubuntu12.4
2016-01-14 13:27:15 upgrade isc-dhcp-common:amd64 4.2.4-7ubuntu12.3 4.2.4-7ubuntu12.4

To see info about removed or deleted packages:
# grep remove /var/log/dpkg.log
Sample outputs:

/var/log/dpkg.log.1:2015-12-06 15:37:35 startup packages remove
/var/log/dpkg.log.1:2015-12-06 15:37:35 remove csh:amd64 20110502-2ubuntu2 
/var/log/dpkg.log.1:2015-12-14 12:51:31 startup packages remove
/var/log/dpkg.log.1:2015-12-14 12:51:31 remove cpuid:amd64 20140123-1 
/var/log/dpkg.log.1:2015-12-14 13:09:19 startup packages remove
/var/log/dpkg.log.1:2015-12-14 13:09:19 remove cpuid:amd64 20140123-1 


You can also use the /var/log/apt/history.log file:
# tail /var/log/apt/history.log
Sample outputs:

Start-Date: 2016-01-10  13:41:54
Commandline: apt-get -qq -y upgrade
Upgrade: libgnutls-openssl27:amd64 (2.12.23-12ubuntu2.3, 2.12.23-12ubuntu2.4), libgnutls26:amd64 (2.12.23-12ubuntu2.3, 2.12.23-12ubuntu2.4)
End-Date: 2016-01-10  13:41:54
Start-Date: 2016-01-14  13:27:15
Commandline: apt-get -qq -y upgrade
Upgrade: isc-dhcp-common:amd64 (4.2.4-7ubuntu12.3, 4.2.4-7ubuntu12.4), libgcc1:amd64 (4.9.1-0ubuntu1, 4.9.3-0ubuntu4), isc-dhcp-client:amd64 (4.2.4-7ubuntu12.3, 4.2.4-7ubuntu12.4), gcc-4.9-base:amd64 (4.9.1-0ubuntu1, 4.9.3-0ubuntu4)
End-Date: 2016-01-14  13:27:16

# more /var/log/apt/history.log
# grep -A4 '2016-01-10' /var/log/apt/history.log

Examples and usage: How to find out when Debian or Ubuntu package installed or updated