ListInstalledPackagesByDate - Community Help Wiki - Ubuntu
help.ubuntu.com › ListInstalledPackagesByDateMar 16, 2014 · Create a list of all installed packages by date. This page shows how to generate a list of installed packages by default. You can do this by looking at the dpkg.log files in /var/log. There is the current log (dpkg.log), the previous log (dpkg.log.1) and then the archived logs (dpkg.log.2.gz -> ). Explanation. The simple command to grab from the current log is: grep " install " /var/log/dpkg.log
How to get list of installed packages with installation date?
askubuntu.com › questions › 1087998Oct 28, 2018 · # grep the relevant lines from the log files for file in dpkg.log* do zgrep ' install ' "$file" > ins.${file%.gz} done # Merge all the install lines chronologically into a single file cat $(ls -rv ins.*) > install.log # Construct a list of all installed packages in the format packagename:arch dpkg -l | grep '^.i' | tr -s ' ' | cut -d' ' -f2,4 | tr ' ' : | cut -d: -f1,2 > installed.list OUTFILE=$(mktemp -p .) for package in $(< installed.list) do # Get only the most recent installation of the ...