How To Install libboost-locale-dev on Ubuntu 18.04

In this tutorial we learn how to install libboost-locale-dev on Ubuntu 18.04. libboost-locale-dev is C++ facilities for localization (default version)

Introduction

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

What is libboost-locale-dev

libboost-locale-dev is:

This package forms part of the Boost C++ Libraries collection.

Boost.Locale gives powerful tools for development of cross platform localized software - the software that talks to user in its language.

  • Correct case conversion, case folding and normalization.
  • Collation (sorting), including support for 4 Unicode collation levels.
  • Date, time, timezone and calendar manipulations, formatting and parsing, including transparent support for calendars other than Gregorian.
  • Boundary analysis for characters, words, sentences and line-breaks.
  • Number formatting, spelling and parsing.
  • Monetary formatting and parsing.
  • Powerful message formatting (string translation) including support for plural forms, using GNU catalogs.
  • Character set conversion.
  • Transparent support for 8-bit character sets like Latin1
  • Support for char and wchar_t
  • Experimental support for C++0x char16_t and char32_t strings and streams.

This package is a dependency package, which depends on Debian’s default Boost version (currently 1.65).

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

sudo apt-get -y install libboost-locale-dev

Install libboost-locale-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libboost-locale-dev

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

sudo aptitude -y install libboost-locale-dev

How To Uninstall libboost-locale-dev on Ubuntu 18.04

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

sudo apt-get remove libboost-locale-dev

Uninstall libboost-locale-dev And Its Dependencies

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

sudo apt-get -y autoremove libboost-locale-dev

Remove libboost-locale-dev Configurations and Data

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

sudo apt-get -y purge libboost-locale-dev

Remove libboost-locale-dev configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libboost-locale-dev

References

Summary

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