Hello,
If you use Debian (but also Linux in general), you sometimes have to install series of packages, sometimes following instructions in some tutorial, for example.
apt-get install fotoxxx
apt-get purge something
apt-history makes it convenient to explore the APT log.
Check latest operations:
$ apt-history
365 apt-get install fotoxx
366 apt-get purge fotoxx
367 apt-get autoremove
368 apt-get purge darktable
369 apt-get autoremove
370 apt-get purge ufraw
371 apt-get install rawtherapee
372 apt-get install mtp-tools
373 apt-get install go-mtpfs
374 /usr/bin/unattended-upgrade
You can examine a single operation, and see exactly which packages were automatically installed, uninstalled, etc.
$ apt-history 372
{
'Start-Date': '2019-08-26 03:28:27',
Commandline: 'apt-get install mtp-tools',
'Requested-By': 'me (1000)',
Install: 'mtp-tools:amd64 (1.1.16-2)',
'End-Date': '2019-08-26 03:28:29'
}
Remove packages which were installed by this operation
sudo dpkg --purge `apt-history 372 Install --as-apt-arguments`
PS: Yep, it's my work, so feel free to leave comments here or
there (on github) and I will take them into consideration.
Thank you.