How to Uninstall and Install x11-common Ubuntu 22.04

Updated: October 29, 2022

x11-common contains the filesystem infrastructure required for further installation of the X Window System in any configuration; it does not provide a full installation of clients, servers, libraries, and utilities required to run the X Window System. I will show you how to install x11-common on Ubuntu 22.04 in this guide.

Requirements

  • Operating system: Ubuntu 22.04 is needed for x11-common to work
  • Privileges: Ensure that you are able to execute the sudo commands line.

Prerequisites to install x11-common on Ubuntu 22.04

Install x11-common Ubuntu 22.04

x11-common is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install x11-common using APT

This is a popular method for installing Ubuntu packages because it’s easy to follow, even if you are a newbie in Linux. Following these steps to install x11-common on your Ubuntu 22.04.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt-get -y update

Step 2: Install the package on Ubuntu 22.04. After updating, you can install x11-common Ubuntu by pasting this command into the terminal and executing it.

sudo apt -y install x11-common

Install x11-common using Aptitude

Aptitude allows users to view a list of available packages and manage package installation, upgrade, and removal. If you haven’t already done so, run this command to install it.

sudo apt-get install aptitude

After installing aptitude, you can now install x11-common by following these steps:

Step 1: Update the APT database to download new packages from Ubuntu. Opening the terminal and executing the following Linux command:

sudo apt update

Step 2: Start installing the packages on Ubuntu 22.04. After updating, you can install x11-common Ubuntu by executing this command in the terminal.

sudo aptitude install x11-common

Uninstall x11-common on Ubuntu 22.04

Have you ever considered how challenging it might be to uninstall an application from Ubuntu? You’re wrong, anyone can easily uninstall any program, not just a x11-common.

If you installed x11-common using APT or Aptitude, you could uninstall x11-common on Ubuntu by executing this command

sudo apt remove --auto-remove x11-common

If you want to uninstall x11-common and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge x11-common

Conclusion

In this guide, I showed you ways to install x11-common on Ubuntu 22.04 and some ways to uninstall x11-common too. If you need any help, don’t hesitate to contact me. I’m very glad to answer them.