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.
ubuntu-minimal
and install only those things you need. – muru Mar 05 '18 at 06:43ubuntu-minimal
, right? My environment has no Internet, I have to install some ubuntu system withiso
. – Yves Mar 05 '18 at 06:47cmake
,gcc
on my own. – Yves Mar 05 '18 at 07:20--dry-run
option toapt-get
will show what is going to be removed. – waltinator Mar 05 '18 at 15:27