Ubuntu – How to get list of installed packages with installation date?

command linepackage-management

How can I output a list of all installed packages with installation date and additional information?

Best Answer

  • Open Terminal and run:

    zgrep 'install ' /var/log/dpkg.log* | sort | cut -f1,2,4 -d' '
    

    Example output:

    2018-09-02 16:10:59 python3-psutil:amd64
    2018-09-02 16:11:00 menulibre:all
    2018-09-07 14:58:58 indicator-stickynotes:all
    2018-09-08 00:17:41 libdumbnet1:amd64
    2018-09-08 00:17:41 libxmlsec1-openssl:amd64
    ...
    

    Since this command will look up into all logs thus the output can be very big. So, it's better to save it into file using

    zgrep 'install ' /var/log/dpkg.log* | sort | cut -f1,2,4 -d' ' > test.txt