Ubuntu – Remove Preloaded Applications

Installing Ubuntu for a server OS? The code below will remove some of the preloaded applications that are needed on a server. Arguably you could remove Gnome in general and all Gtk but that depends on how you want to run your server.

for i in org.gnome.Software \
org.gnome.Totem \
aisleriot \
cheese \
org.gnome.Cheese \
evolution-data-server-uoa \
firefox \
gnome-mahjongg \
gnome-sudoku \
libreoffice* \
rhythmbox* \
shotwell* \
thunderbird \
totem \
transmission-gtk \
vino-server \
vino-preferences \
webbrowser-app \
ubuntu-amazon-default \
gnome-mines; do
apt remove -y --purge  $i
done
apt autoremove -y
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.