Uninstall Pre-installed Games On Ubuntu 22.04 LTS
Hey guys! So, you've just installed Ubuntu 22.04 LTS and noticed a bunch of pre-installed games cluttering up your system? Don't worry; you're not alone! Many users prefer a clean slate and want to remove these games to free up space and declutter their application list. This guide will walk you through the process of uninstalling all those pre-installed games on your Ubuntu 22.04 LTS system. Let's dive in!
Why Uninstall Pre-installed Games?
Before we get started, let's briefly touch on why you might want to remove these games in the first place. Here are a few common reasons:
- Freeing up disk space: Pre-installed games, while small, can still take up valuable disk space, especially if you have a smaller SSD.
- Decluttering the application list: Having games you never play just clutters your application menu, making it harder to find the apps you actually use.
- Improving system performance: While the impact is minimal, removing unnecessary software can slightly improve system performance by reducing background processes.
- Personal preference: Simply put, you might not like the games or have no intention of playing them.
Whatever your reason, this guide will help you get rid of those pre-installed games and customize your Ubuntu system to your liking.
Step-by-Step Guide to Uninstalling Pre-installed Games
Okay, let's get down to business. Here's a detailed, step-by-step guide on how to uninstall all those pre-installed games on Ubuntu 22.04 LTS.
Step 1: Open the Terminal
The terminal is your best friend when it comes to managing software on Linux. To open the terminal, you can use one of the following methods:
- Using the keyboard shortcut: Press
Ctrl + Alt + T. - Searching in the Activities overview: Click on the "Activities" button in the top-left corner of your screen, type "terminal," and click on the Terminal icon.
Once the terminal is open, you're ready to start entering commands.
Step 2: Identify the Pre-installed Games
Before we can uninstall the games, we need to know their exact package names. Ubuntu usually includes games like Sudoku, Mines, Chess, and Mahjongg. However, the package names might be slightly different. To get a list of all installed packages that might be games, you can use the following command:
dpkg --get-selections | grep games
This command lists all installed packages and filters the results to show only those with "games" in their name. The output will look something like this:
aisleriot install
gnome-mahjongg install
gnome-mines install
gnome-sudoku install
... other games or related packages ...
The first column shows the package name, and the second column indicates whether the package is installed. Make a note of the package names you want to remove. Take your time to make sure to identify correctly each package to be removed.
Step 3: Uninstall the Games
Now that you have the package names, you can use the apt command to uninstall them. The apt command is a powerful tool for managing software packages on Debian-based systems like Ubuntu. To uninstall a package, use the following command:
sudo apt remove <package_name>
Replace <package_name> with the actual name of the package you want to remove. For example, to uninstall gnome-sudoku, you would use the following command:
sudo apt remove gnome-sudoku
The sudo command is necessary because uninstalling software requires administrative privileges. You'll be prompted to enter your password. After entering your password, apt will analyze the package and its dependencies and then ask you to confirm the removal. Type y and press Enter to proceed. Ensure you have a stable internet connection to download dependencies.
To uninstall multiple games at once, you can specify multiple package names in a single command:
sudo apt remove gnome-sudoku gnome-mines aisleriot
This command will uninstall gnome-sudoku, gnome-mines, and aisleriot in one go. Repeat this process for all the pre-installed games you want to remove.
Step 4: Remove Unnecessary Dependencies (Optional)
When you uninstall a package, some of its dependencies might no longer be needed. These are called orphaned dependencies. To remove these unnecessary dependencies, you can use the following command:
sudo apt autoremove
This command will automatically remove any dependencies that were installed as part of the games but are no longer required by any other packages. This can help free up additional disk space. Be careful and make sure before removing any dependencies.
Step 5: Clean Up the System (Optional)
After uninstalling the games and removing unnecessary dependencies, you can further clean up your system by removing any cached package files. These files are stored in the /var/cache/apt/archives/ directory and can take up a significant amount of disk space over time. To clean up the package cache, use the following command:
sudo apt clean
This command will remove all cached package files from the /var/cache/apt/archives/ directory. This is a safe operation and won't harm your system. Clean up the system often to avoid issues with space.
Alternative Methods for Uninstalling Games
While the terminal is the most reliable and efficient way to uninstall software on Ubuntu, there are also a few alternative methods you can use.
Using the Ubuntu Software Center
The Ubuntu Software Center provides a graphical interface for managing software packages. To uninstall games using the Software Center, follow these steps:
- Open the Ubuntu Software Center.
- Click on the "Installed" tab.
- Find the game you want to uninstall in the list of installed applications.
- Click on the game to open its details page.
- Click on the "Remove" button.
- Enter your password when prompted.
The Software Center will then uninstall the game and any associated dependencies. While this method is more user-friendly, it can be slower and less reliable than using the terminal.
Using Synaptic Package Manager
Synaptic Package Manager is a more advanced graphical tool for managing software packages. It provides more control over the installation and removal process than the Ubuntu Software Center. To uninstall games using Synaptic, follow these steps:
-
If you don't have Synaptic installed, you can install it using the following command:
sudo apt install synaptic -
Open Synaptic Package Manager.
-
Search for the game you want to uninstall.
-
Right-click on the package and select "Mark for Removal."
-
Click on the "Apply" button in the toolbar.
-
Confirm the changes and enter your password when prompted.
Synaptic will then uninstall the game and any associated dependencies. Synaptic is a great option for users who prefer a graphical interface but want more control over the package management process.
Conclusion
So, there you have it! A comprehensive guide on how to uninstall pre-installed games on Ubuntu 22.04 LTS. By following these steps, you can easily remove unwanted games, free up disk space, declutter your application list, and customize your system to your exact preferences. Whether you prefer using the terminal or a graphical interface, you now have the tools and knowledge to manage your software packages effectively. Keep your system clean and optimized by following these tips. Happy tweaking!
Remember to always be careful when uninstalling software, especially when using the terminal. Double-check the package names before removing them, and be sure to read any prompts or warnings carefully. With a little caution and attention to detail, you can keep your Ubuntu system running smoothly and efficiently.