How To Install hicolor-icon-theme on Ubuntu 18.04

In this tutorial we learn how to install hicolor-icon-theme on Ubuntu 18.04. hicolor-icon-theme is default fallback theme for FreeDesktop.org icon themes

Introduction

In this tutorial we learn how to install hicolor-icon-theme on Ubuntu 18.04.

What is hicolor-icon-theme

hicolor-icon-theme is:

This is the default fallback theme used by implementations of the Freedesktop.org Icon Theme specification.

There are three methods to install hicolor-icon-theme 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 hicolor-icon-theme Using apt-get

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

sudo apt-get update

After updating apt database, We can install hicolor-icon-theme using apt-get by running the following command:

sudo apt-get -y install hicolor-icon-theme

Install hicolor-icon-theme Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install hicolor-icon-theme using apt by running the following command:

sudo apt -y install hicolor-icon-theme

Install hicolor-icon-theme 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 hicolor-icon-theme using aptitude by running the following command:

sudo aptitude -y install hicolor-icon-theme

How To Uninstall hicolor-icon-theme on Ubuntu 18.04

To uninstall only the hicolor-icon-theme package we can use the following command:

sudo apt-get remove hicolor-icon-theme

Uninstall hicolor-icon-theme And Its Dependencies

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

sudo apt-get -y autoremove hicolor-icon-theme

Remove hicolor-icon-theme Configurations and Data

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

sudo apt-get -y purge hicolor-icon-theme

Remove hicolor-icon-theme configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge hicolor-icon-theme

References

Summary

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