How To Install libtex-encode-perl on Ubuntu 18.04

In this tutorial we learn how to install libtex-encode-perl on Ubuntu 18.04. libtex-encode-perl is Perl module to transform UTF-8 strings into TeX

Introduction

In this tutorial we learn how to install libtex-encode-perl on Ubuntu 18.04.

What is libtex-encode-perl

libtex-encode-perl is:

TeX::Encode provides a simple way to encode arbitrary UTF-8 strings into LaTeX escapes using mapping tables provided by Pod::LaTeX and HTML::Entities.

This module only covers a subset of the Unicode character set and has limited facilities for converting TeX back to UTF-8 (this is because TeX is in essence a programming language, and this module does not yet implement TeX).

There are three methods to install libtex-encode-perl 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 libtex-encode-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libtex-encode-perl using apt-get by running the following command:

sudo apt-get -y install libtex-encode-perl

Install libtex-encode-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libtex-encode-perl using apt by running the following command:

sudo apt -y install libtex-encode-perl

Install libtex-encode-perl 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 libtex-encode-perl using aptitude by running the following command:

sudo aptitude -y install libtex-encode-perl

How To Uninstall libtex-encode-perl on Ubuntu 18.04

To uninstall only the libtex-encode-perl package we can use the following command:

sudo apt-get remove libtex-encode-perl

Uninstall libtex-encode-perl And Its Dependencies

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

sudo apt-get -y autoremove libtex-encode-perl

Remove libtex-encode-perl Configurations and Data

To remove libtex-encode-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libtex-encode-perl

Remove libtex-encode-perl configuration, data, and all of its dependencies

We can use the following command to remove libtex-encode-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libtex-encode-perl

References

Summary

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