This is how to get information about recently installed packages on Ubuntu. This is looking at the lowlatency package I just installed.
4.4 Thu Jun 04 jason@Yog-Sothoth 0: $ grep "lowlatency" /var/log/apt/history.log | sed "s/ /\n/gi"; Commandline: apt install linux-image-5.3.0-24-lowlatency Install: linux-image-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2), linux-modules-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2, automatic) Commandline: apt-get install --reinstall linux-image-5.3.0-24-lowlatency Reinstall: linux-image-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2) Commandline: apt-get install linux-headers-5.3.0-24-lowlatency Install: linux-headers-5.3.0-24-lowlatency:amd64 (5.3.0-24.26~18.04.2), linux-headers-5.3.0-24:amd64 (5.3.0-24.26~18.04.2, automatic) |
This is how to count all manually installed packages on Debian or Ubuntu.
jason@Yog-Sothoth:~$ apt-mark showmanual | wc -l 2302 |
List just a few manually installed packages using wildcards.
4.4 Thu Jun 04 jason@Yog-Sothoth 0: $ apt-mark showmanual | grep "ubuntu-wallpapers-*" ubuntu-wallpapers ubuntu-wallpapers-artful ubuntu-wallpapers-bionic ubuntu-wallpapers-karmic ubuntu-wallpapers-lucid ubuntu-wallpapers-maverick ubuntu-wallpapers-natty ubuntu-wallpapers-oneiric ubuntu-wallpapers-precise ubuntu-wallpapers-quantal ubuntu-wallpapers-raring ubuntu-wallpapers-saucy ubuntu-wallpapers-trusty ubuntu-wallpapers-utopic ubuntu-wallpapers-vivid ubuntu-wallpapers-wily ubuntu-wallpapers-xenial ubuntu-wallpapers-yakkety ubuntu-wallpapers-zesty |
List only a few recently installed packages this way.
jason@jason-Lenovo-H50-55:~$ sed "s/ /\n/gi" /var/log/apt/history.log | tail -n 30 jason (1000) Install: gcc-10-base:i386 (10-20200411-0ubuntu1, automatic), steamcmd:i386 (0~20180105-3), libc6:i386 (2.31-0ubuntu9, automatic), libcrypt1:i386 (1:4.4.10-10ubuntu4, automatic), libgcc-s1:i386 (10-20200411-0ubuntu1, automatic), libunistring2:i386 (0.9.10-2, automatic), libstdc++6:i386 (10-20200411-0ubuntu1, automatic), libidn2-0:i386 (2.2.0-2, automatic) End-Date: 2020-08-31 17:11:39 |
This also tells us that the packages were installed and that they were automatically pulled in by the installation of another package.
https://astr0baby.wordpress.com/2019/04/28/running-hp-ux-11-11-on-qemu-system-hppa/