How To Install uni2ascii on Ubuntu 18.04

In this tutorial we learn how to install uni2ascii on Ubuntu 18.04. uni2ascii is UTF-8 to 7-bit ASCII and vice versa converter

Introduction

In this tutorial we learn how to install uni2ascii on Ubuntu 18.04.

What is uni2ascii

uni2ascii is:

This package provides conversion in both directions between UTF-8 Unicode and a variety of 7-bit ASCII equivalents, including HTML numeric character references, various escapes and hexadecimal. Such ASCII equivalents are useful when including Unicode text in program source, when debugging, and when entering text into web programs that can handle the Unicode character set but are not 8-bit safe.

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

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

sudo apt-get update

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

sudo apt-get -y install uni2ascii

Install uni2ascii Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install uni2ascii using apt by running the following command:

sudo apt -y install uni2ascii

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

sudo aptitude -y install uni2ascii

How To Uninstall uni2ascii on Ubuntu 18.04

To uninstall only the uni2ascii package we can use the following command:

sudo apt-get remove uni2ascii

Uninstall uni2ascii And Its Dependencies

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

sudo apt-get -y autoremove uni2ascii

Remove uni2ascii Configurations and Data

To remove uni2ascii configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge uni2ascii

Remove uni2ascii configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge uni2ascii

References

Summary

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