I am using Ubuntu 20.04.01. Say for example i follow a guide that instructs me to install some stuff. So i run the sudo apt install a few times with different names and im done. But then after like 2 weeks i want to remove the stuff i installed. How would i find it so that i can delete it? Like if i forgot all the names of everything i installed.
I come from windows so this whole question may sound very stupid, but there i used to just create a folder and dump EVERYTHING in there. that way i knew that every app folder in that huge dump folder has nothing to do with the system essentials, and i can freely delete the folder of that app. is there a way to do something similar in Ubuntu? specify where exactly i want to install the thing to ensure i can easily delete it if i want to?
maybe im thinking about all of this wrong? At the moment i feel like i have to remember every single name of every single thing i ever install if i want to later find or delete it. that surely cant be the case, right?
apt-mark showmanual
output anddpkg --get-selections
... but frankly none of this will really be a 100% what you want. If you want this behavior, you could do what I am doing, have a script that gets called via APT hook and dumps that into a folder I have inside/etc
. And on my systems/etc
is kept under version control viaetckeeper
and so I'll be able to recover the configuration and setup of a system by cloning that and continuously pulling updates from it. – 0xC0000022L Sep 01 '20 at 22:32/var/lib/apt/extended_states
from an existing system. This is what my script also does as APT hook (and for good measure on a regular basis usingcron
). – 0xC0000022L Sep 01 '20 at 22:33