How can I install some packages temporarily and easily remove them when unwanted several months/years later? The reason for this is that I like to extensively test software before deciding whether to keep it or remove it.
For example, I might install graphic design packages with:
apt-get install inkscape gimp
and mathematics packages with:
apt-get install texlive-full gnuplot
I could use virtual machines for each set of packages (
design), but it seems like overkill (I do not needed the added security/computational costs).
I could also use
apt list --installed and remove the packages I do not need with (for example)
apt-get purge texlive-full gnuplot (but this requires me to remember which set of packages I installed - I will always remove the full set at a time and never individual packages in a set).