10

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.

2
  • Does this video answer your question ? youtube.com/watch?v=bv4a_MAsSo8
    – Liso
    Jun 14, 2022 at 12:36
  • 1
    i can't use youtube because of my ISP provider.it doesn't load at all but thanks. that's why i posted the question in stack overflow. but anyways thanks
    – Rishon_JR
    Jun 14, 2022 at 13:49

3 Answers 3

14

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.

3
  • 3
    Or in one command: sudo apt purge gnome-games --autoremove
    – iBug
    Jun 15, 2022 at 8:52
  • 3
    APT accepts a variety of flags to combine effects from subcommands, so apt autoremove --purge gnome-games also does the exact same thing.
    – iBug
    Jun 15, 2022 at 8:53
  • @iBug I did not know thx
    – lnee
    Jun 15, 2022 at 12:36
7

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.

0
1

There are many ways to do that.

  1. 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.

  2. 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.

  3. 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.

3
  • not a answer is should be a commet
    – lnee
    Jun 14, 2022 at 12:36
  • @Inee a valid answer. One just needs to uninstall the software one does not want installed. It is as simple as that.
    – vanadium
    Jun 14, 2022 at 12:38
  • @vanadium A list is explicitly asked for. Jun 15, 2022 at 16:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.