How To Install x11-common on Ubuntu 20.04

In this tutorial we learn how to install x11-common on Ubuntu 20.04. x11-common is X Window System (X.Org) infrastructure

Introduction

In this tutorial we learn how to install x11-common on Ubuntu 20.04.

What is x11-common

x11-common is:

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.

A number of terms are used to refer to the X Window System, including “X”, “X Version 11”, “X11”, “X11R6”, and “X11R7”. The version of X used in Debian is derived from the version released by the X.Org Foundation, and is thus often also referred to as “X.Org”. All of the preceding quoted terms are functionally interchangeable in an Debian system. Task: ubuntu-desktop-minimal, ubuntu-desktop, kubuntu-desktop, xubuntu-core, xubuntu-desktop, lubuntu-desktop, ubuntustudio-desktop-core, ubuntustudio-desktop, ubuntukylin-desktop, ubuntu-mate-core, ubuntu-mate-desktop, ubuntu-budgie-desktop

There are three methods to install x11-common on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install x11-common Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install x11-common using apt-get by running the following command:

sudo apt-get -y install x11-common

Install x11-common Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install x11-common using apt by running the following command:

sudo apt -y install x11-common

Install x11-common Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install x11-common using aptitude by running the following command:

sudo aptitude -y install x11-common

How To Uninstall x11-common on Ubuntu 20.04

To uninstall only the x11-common package we can use the following command:

sudo apt-get remove x11-common

Uninstall x11-common And Its Dependencies

To uninstall x11-common and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove x11-common

Remove x11-common Configurations and Data

To remove x11-common configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge x11-common

Remove x11-common configuration, data, and all of its dependencies

We can use the following command to remove x11-common configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge x11-common

References

Summary

In this tutorial we learn how to install x11-common package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.