>>107980638
if you're on debian based distro then create
>/etc/apt/apt.conf.d/99no-bloat
and put this in it:
APT::Install-Recommends "false";
APT::Install-Suggests "false";
APT::AutoRemove::RecommendsImportant "false";
APT::AutoRemove::SuggestsImportant "false";
Acquire::Languages { "none"; }
This will make apt install only hard dependencies, and also make apt autoremove a package if it's not a hard dependency of any manually installed package
Also do
>apt-mark minimize-manual
to minimize the amount of manually installed packages.
I also figured that you could mark all "essential" or "required" packages as auto safely, since apt will never attempt to (auto)remove an essential package unless you give it the --allow-remove-essential flag:
dpkg-query -Wf '${Priority} ${Package}\n' | grep '^required' | sed 's/required //' | sudo xargs apt-mark auto
To see all manually installed packages use:
apt-mark showmanual