How To Install http-icons on Ubuntu 18.04

In this tutorial we learn how to install http-icons on Ubuntu 18.04. http-icons is classic MIME icons

Introduction

In this tutorial we learn how to install http-icons on Ubuntu 18.04.

What is http-icons

http-icons is:

http-icons date back to Mosaic for X and have been included in the NCSA httpd and Apache server distributions. Modernized, maintaining the original size so they can be used as a drop in replacement.

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

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

sudo apt-get update

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

sudo apt-get -y install http-icons

Install http-icons Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install http-icons

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

sudo aptitude -y install http-icons

How To Uninstall http-icons on Ubuntu 18.04

To uninstall only the http-icons package we can use the following command:

sudo apt-get remove http-icons

Uninstall http-icons And Its Dependencies

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

sudo apt-get -y autoremove http-icons

Remove http-icons Configurations and Data

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

sudo apt-get -y purge http-icons

Remove http-icons configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge http-icons

References

Summary

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