How do I uninstall all the pre-installed ubuntu games?
I don't use them at all and I want to remove everything that I don't use. I am using a freshly installed ubuntu 22.04 LTS.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityHow do I uninstall all the pre-installed ubuntu games?
I don't use them at all and I want to remove everything that I don't use. I am using a freshly installed ubuntu 22.04 LTS.
To remove all the pre-installed games on ubuntu, run
sudo apt purge gnome-games
sudo apt autoremove
Or in one line:
sudo apt purge --autoremove gnome-games
Ok, so a bit of background I was looking at the package page for ubuntu-desktop and found nothing about games, and then for the fun of it looked up gnome-games and well I found it.
The purge command removes all configs and all packages after it. autoremove removes unneeded packages on your system.
apt autoremove --purge gnome-games
also does the exact same thing.
A distribution comes with a default selection of software. If there is software you want to remove, feel free to remove it.
In "Ubuntu Software", head to the "Installed" tab. This will list all the software that is installed. It is easy to go over the list and remove anything you do not want.
Next time, when you install Ubuntu again, you may prefer to opt for a "Minimum install". Then, only the desktop, a browser and core system utilities (terminal, text editor) are installed by default.
There are many ways to do that.
First of all, you I strongly suggest you install the Synaptic Package Manager with
sudo apt-get install synaptic
The Synaptic Package Manager will allow you to manage your packages through a GUI. Then, you simply have to locate the packages with the names of the games you want to uninstall in the list, and remove them.
In the same way, you can uninstall any other piece of software that is included with Ubuntu and you don't need it.
If, for some reason, you would rather use the terminal only, you can list all the installed packages with
apt list --installed
And find the packages you want to uninstall. As the list is usually huge, and the process can get tedious, you can search for a specific package from the list using
apt list --installed | grep nameOfPackage
The operator "|" allows you to use the output of the first command as the input of the second command. Therefore, first you generate the list of the installed packages, and then you search through this list using the grep tool.
When you locate the package(s) you want uninstalled, you can simply run
sudo apt-get --purge autoremove nameOfPackage
This will completely remove the package and its dependencies from your system.
You can also use Ubuntu Software, an application provided by Ubuntu in order to install or uninstall software. But keep in mind that there are packages that cannot be found there.