Hi all in the blog post we are going to list down the packages we installed manually.
why we need that information?
when we set up a fresh Linux Distro or migrate existing or converting Linux installation into a docker image that will very helpful to us
how we are going to get this thing done?
using the aptitude (high-level package manager command-line interface)
install aptitude first if not present in your system
sudo apt install aptitude
wait a few seconds to complete installation after completing the installation run the following command to find the manually installed packages after the initial run of the
comm -23 <(aptitude search '~i !~M' -F '%p' | sed "s/ *$//" | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
Voila we did it!