Debian/Ubuntu Linux apt-get/apt command log file

Debian/Ubuntu Linux apt-get/apt command log file

To see a log of Debian/Ubuntu Linux apt-get/apt command log, enter:
# cat /var/log/dpkg.log
OR
# cat /var/log/apt/history.log
Sample outputs:

2017-05-01 19:45:38 startup archives unpack
2017-05-01 19:45:38 install libnetfilter-queue1:amd64  1.0.2-2
2017-05-01 19:45:38 status half-installed libnetfilter-queue1:amd64 1.0.2-2
2017-05-01 19:45:38 status unpacked libnetfilter-queue1:amd64 1.0.2-2
2017-05-01 19:45:38 status unpacked libnetfilter-queue1:amd64 1.0.2-2
2017-05-01 19:45:38 install libnfnetlink-dev:amd64  1.0.1-3
2017-05-01 19:45:38 status half-installed libnfnetlink-dev:amd64 1.0.1-3
2017-05-01 19:45:38 status unpacked libnfnetlink-dev:amd64 1.0.1-3
2017-05-01 19:45:38 status unpacked libnfnetlink-dev:amd64 1.0.1-3
2017-05-01 19:45:38 install libnetfilter-queue-dev:amd64  1.0.2-2
2017-05-01 19:45:38 status half-installed libnetfilter-queue-dev:amd64 1.0.2-2
2017-05-01 19:45:38 status unpacked libnetfilter-queue-dev:amd64 1.0.2-2
2017-05-01 19:45:38 status unpacked libnetfilter-queue-dev:amd64 1.0.2-2
2017-05-01 19:45:38 install libexpat1-dev:amd64  2.2.0-2
2017-05-01 19:45:38 status half-installed libexpat1-dev:amd64 2.2.0-2
2017-05-01 19:45:38 status triggers-pending doc-base:all 0.10.7
2017-05-01 19:45:39 status unpacked libexpat1-dev:amd64 2.2.0-2
2017-05-01 19:45:39 status unpacked libexpat1-dev:amd64 2.2.0-2
2017-05-01 19:45:39 install libpython2.7-dev:amd64  2.7.13-2
2017-05-01 19:45:39 status half-installed libpython2.7-dev:amd64 2.7.13-2
....
..
...
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status unpacked openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:48 status half-configured openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1
2017-05-20 01:54:49 status installed openjdk-8-jre-headless:amd64 8u131-b11-0ubuntu1.17.04.1

Examples and usage: How to find out and show a log of actions taken by the software management on Linux