How To Install libicu-dev on Ubuntu 20.04

In this tutorial we learn how to install libicu-dev on Ubuntu 20.04. libicu-dev is Development files for International Components for Unicode

Introduction

In this tutorial we learn how to install libicu-dev on Ubuntu 20.04.

What is libicu-dev

libicu-dev is:

ICU is a C++ and C library that provides robust and full-featured Unicode and locale support. This package contains the development files for ICU.

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

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

sudo apt-get update

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

sudo apt-get -y install libicu-dev

Install libicu-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libicu-dev

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

sudo aptitude -y install libicu-dev

How To Uninstall libicu-dev on Ubuntu 20.04

To uninstall only the libicu-dev package we can use the following command:

sudo apt-get remove libicu-dev

Uninstall libicu-dev And Its Dependencies

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

sudo apt-get -y autoremove libicu-dev

Remove libicu-dev Configurations and Data

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

sudo apt-get -y purge libicu-dev

Remove libicu-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libicu-dev

References

Summary

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