Stripping Down Ubuntu 20.04 LTS

I’ve been using Ubuntu pretty happily for private server use cases for a while. I recently updated my home network’s DNS forwarder. I use with unbound to provide DNS-over-TLS for machines on my network as well as Pi-Hole like adblocking.

While a server install of Ubuntu LTS is relatively stripped down, it still has a couple of things I don’t really care for:

  • Snap (snap) - a universal package framework
  • PackageKit (packagekit) - part of the lower level automation around package management
  • update-manager-core - a package related to the automated dependency management

None of these packages are inherently bad but I don’t really have any interest in using Snap on my server. I also don’t care about automating package updates on this machine.

To be clear - there’s no real advantage to removing these packages. They don’t hurt anything. I just prefer to remove any services I’m not explicitly making use of. To that end, I’ve been running the following on fresh installs of Ubuntu 18.04 LTS and Ubuntu 20.04 LTS:

sudo apt remove packagekit snap update-manager-core && sudo apt autoremove