How To Install zh-autoconvert on Ubuntu 18.04

In this tutorial we learn how to install zh-autoconvert on Ubuntu 18.04. zh-autoconvert is Chinese HZ/GB/BIG5/UTF-16/UTF-7/UTF-8 encodings auto-converter

Introduction

In this tutorial we learn how to install zh-autoconvert on Ubuntu 18.04.

What is zh-autoconvert

zh-autoconvert is:

AutoConvert is an intelligent Chinese Encoding converter. It uses builtin functions to judge the type of the input file’s Chinese Encoding (such as GB/Big5/HZ), then converts the input file to any type of Chinese Encoding you want. You can use autoconvert to handle incoming mail, automatically converting messages to the Chinese Encoding you want. It can alse handle Unicode (UTF-16)/UTF-7/UTF-8 now.

This package contains the binary tools autogb and autob5, as well as the corresponding autogb/autob5 plugins for XChat the IRC client.

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

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

sudo apt-get update

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

sudo apt-get -y install zh-autoconvert

Install zh-autoconvert Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install zh-autoconvert

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

sudo aptitude -y install zh-autoconvert

How To Uninstall zh-autoconvert on Ubuntu 18.04

To uninstall only the zh-autoconvert package we can use the following command:

sudo apt-get remove zh-autoconvert

Uninstall zh-autoconvert And Its Dependencies

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

sudo apt-get -y autoremove zh-autoconvert

Remove zh-autoconvert Configurations and Data

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

sudo apt-get -y purge zh-autoconvert

Remove zh-autoconvert configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge zh-autoconvert

References

Summary

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