I want to minimize my Ubuntu system, which means that I'm trying to remove the installed packages by default as many as I can.
My goal is to get a minimized Ubuntu system so that I can run my own cpp project (of course I will install cmake, gcc on my own).
For now, my method is to use apt or dpkg to list all packages installed, then to remove one package from the list and reboot, if the system can be rebooted normally, I'm gonna say that the package can be removed.
As you see, this method is very bad because it takes so much time.
I just want to know if there is some better way to do so.