1

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?

SnSmNtNs
  • 19
  • 3

1 Answers1

0

This must be a duplicate, but a suggested answer to the proposed dup does not quite answer the question. The list of initially installed packages is kept, and may be used to compare to the apt-mark showmanual output. This keeps things that get updates out of the list, but still may let through some "dist-upgrade" additions. I put the below into a script, myinstp in my bin area to run. The -u on sort seems optional, but doesn't hurt.

comm -23 <(apt-mark showmanual | sort -u) <(gzip -dc /var/log/installer/initial-status.gz | sed -n 's/^Package: //p' | sort -u)
ubfan1
  • 19,049