How To Install libunistring-dev on Ubuntu 18.04

In this tutorial we learn how to install libunistring-dev on Ubuntu 18.04. libunistring-dev is Unicode string library for C - development files

Introduction

In this tutorial we learn how to install libunistring-dev on Ubuntu 18.04.

What is libunistring-dev

libunistring-dev is:

The ’libunistring’ library implements Unicode strings (in the UTF-8, UTF-16, and UTF-32 encodings), together with functions for Unicode characters (character names, classifications, properties) and functions for string processing (formatted output, width, word breaks, line breaks, normalization, case folding, regular expressions).

This package contains the development support files needed to compile and link against libunistring, as well as the documentation in Info and HTML format.

There are three methods to install libunistring-dev 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 libunistring-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 libunistring-dev using apt-get by running the following command:

sudo apt-get -y install libunistring-dev

Install libunistring-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libunistring-dev

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

sudo aptitude -y install libunistring-dev

How To Uninstall libunistring-dev on Ubuntu 18.04

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

sudo apt-get remove libunistring-dev

Uninstall libunistring-dev And Its Dependencies

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

sudo apt-get -y autoremove libunistring-dev

Remove libunistring-dev Configurations and Data

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

sudo apt-get -y purge libunistring-dev

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

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

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

References

Summary

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