debian - List packages on an apt based system by installation ...
unix.stackexchange.com › questions › 12578In particular, /var/lib/dpkg/info/$packagename.list is created when the package is installed (and not modified afterwards). If you used the APT tools (which you presumably did since you're concerned about automatically vs manually installed packages), there's a history in /var/log/apt/history.log. As long as it hasn't rotated away, it keeps track of all APT installations, upgrades and removals, with an annotation for packages marked as automatically installed.
How to find out when Debian or Ubuntu package installed or ...
www.cyberciti.biz › faq › debian-ubuntu-linux-findNov 14, 2019 · List packages by installation date. Simply type the following tail command to see the last packages info: # tail -f /var/log/dpkg.log. $ sudo tail -f /var/log/dpkg.log. Sample outputs: 2019-11-13 23:11:39 purge linux-modules-extra-5.3.0-18-generic:amd64 5.3.0-18.19 2019-11-13 23:11:39 status config-files linux-modules-extra-5.3.0-18-generic:amd64 5.3.0-18.19 2019-11-13 23:11:39 status not-installed linux-modules-extra-5.3.0-18-generic:amd64 2019-11-13 23:11:39 purge linux-modules-5.3.