How To Install xcursor-themes on Ubuntu 18.04

In this tutorial we learn how to install xcursor-themes on Ubuntu 18.04. xcursor-themes is Base X cursor themes

Introduction

In this tutorial we learn how to install xcursor-themes on Ubuntu 18.04.

What is xcursor-themes

xcursor-themes is:

This package contains the additional base X cursor themes – handhelds, redglass, and whiteglass. These themes are not essential for the X server to run.

There are three methods to install xcursor-themes 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 xcursor-themes Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install xcursor-themes

Install xcursor-themes Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install xcursor-themes

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

sudo aptitude -y install xcursor-themes

How To Uninstall xcursor-themes on Ubuntu 18.04

To uninstall only the xcursor-themes package we can use the following command:

sudo apt-get remove xcursor-themes

Uninstall xcursor-themes And Its Dependencies

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

sudo apt-get -y autoremove xcursor-themes

Remove xcursor-themes Configurations and Data

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

sudo apt-get -y purge xcursor-themes

Remove xcursor-themes configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge xcursor-themes

References

Summary

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