it´s not a real problem I´m dealing with here. It´s rather out of curiosity that I ask …
After installing Ubuntu or one of its derivatives (Lubuntu in my case) I naturally do quite a bit of post-installation work, i.e. I install some of my favourite packages.
To be able to refer to them when another new installation is needed one has to keep track of everything post-installed, e.g. by writing those newly-installed packages into a list.
However: if one neglects this task there´s a fine command listing all manually post-installed packages (those installed with apt) without the respective dependencies (which seems a crucial point to me):
comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
This has worked great in the past and I´ve already put it to good use.
Alas this command doesn´t seem to work (at least not the way it should) on Debian (I tried it on Debian 10):
Here it says:
gzip: /var/log/installer/initial-status.gz: No such file or directory
, which is the crucial part, I think. The command lists more than it´s supposed to.
So due to the fact that Debian doesn´t have the initial-status file available there´s no way to use it for comparative purposes.
Does anyone of you know of an alternative command for Debian systems
My guess is: the only alternative is to keep track manually of everything post-installed.