How To Install tcs on Ubuntu 18.04

In this tutorial we learn how to install tcs on Ubuntu 18.04. tcs is character set translator

Introduction

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

What is tcs

tcs is:

tcs translates character sets from one encoding to another.

Supported encodings include utf (ISO utf-8), ascii, ISO 8859-[123456789], koi8, jis-kanji, ujis, ms-kanji, jis, gb, big5, unicode, tis, msdos, and atari.

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

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

sudo apt-get update

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

sudo apt-get -y install tcs

Install tcs Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install tcs

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

sudo aptitude -y install tcs

How To Uninstall tcs on Ubuntu 18.04

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

sudo apt-get remove tcs

Uninstall tcs And Its Dependencies

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

sudo apt-get -y autoremove tcs

Remove tcs Configurations and Data

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

sudo apt-get -y purge tcs

Remove tcs configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge tcs

References

Summary

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