How To Install libhyphen-dev on Ubuntu 18.04

In this tutorial we learn how to install libhyphen-dev on Ubuntu 18.04. libhyphen-dev is ALTLinux hyphenation library - development files

Introduction

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

What is libhyphen-dev

libhyphen-dev is:

ALTLinuxhyph is a modified version of libhnj which is a high quality hyphenation and justification library based on the TeX hyphenation algorithm. The TeX hyphenation patterns could be used after a preprocessing step.

It is used in OpenOffice.org

This package contains the headers and necessary files for programming apps with ALTLinuxhyph.

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

sudo apt-get -y install libhyphen-dev

Install libhyphen-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhyphen-dev

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

sudo aptitude -y install libhyphen-dev

How To Uninstall libhyphen-dev on Ubuntu 18.04

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

sudo apt-get remove libhyphen-dev

Uninstall libhyphen-dev And Its Dependencies

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

sudo apt-get -y autoremove libhyphen-dev

Remove libhyphen-dev Configurations and Data

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

sudo apt-get -y purge libhyphen-dev

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

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

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

References

Summary

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