How To Install xkb-data on Ubuntu 18.04

In this tutorial we learn how to install xkb-data on Ubuntu 18.04. xkb-data is X Keyboard Extension (XKB) configuration data

Introduction

In this tutorial we learn how to install xkb-data on Ubuntu 18.04.

What is xkb-data

xkb-data is:

This package contains configuration data used by the X Keyboard Extension (XKB), which allows selection of keyboard layouts when using a graphical interface.

Every X11 vendor provides its own XKB data files, so keyboard layout designers have to send their layouts to several places. The xkeyboard-config project has been launched at FreeDesktop in order to provide a central repository that could be used by all vendors.

There are three methods to install xkb-data on Ubuntu 18.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 xkb-data Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install xkb-data

Install xkb-data Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install xkb-data

Install xkb-data 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 xkb-data using aptitude by running the following command:

sudo aptitude -y install xkb-data

How To Uninstall xkb-data on Ubuntu 18.04

To uninstall only the xkb-data package we can use the following command:

sudo apt-get remove xkb-data

Uninstall xkb-data And Its Dependencies

To uninstall xkb-data and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove xkb-data

Remove xkb-data Configurations and Data

To remove xkb-data configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xkb-data

Remove xkb-data configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xkb-data

References

Summary

In this tutorial we learn how to install xkb-data package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.