How To Install libhz-dev on Ubuntu 18.04

In this tutorial we learn how to install libhz-dev on Ubuntu 18.04. libhz-dev is Headers and static libraries for zh-autoconvert

Introduction

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

What is libhz-dev

libhz-dev 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 development files (symlinks, headers, and object files) needed to compile and link programs which use the zh-autoconvert libhz library.

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

sudo apt-get -y install libhz-dev

Install libhz-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libhz-dev

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

sudo aptitude -y install libhz-dev

How To Uninstall libhz-dev on Ubuntu 18.04

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

sudo apt-get remove libhz-dev

Uninstall libhz-dev And Its Dependencies

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

sudo apt-get -y autoremove libhz-dev

Remove libhz-dev Configurations and Data

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

sudo apt-get -y purge libhz-dev

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

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

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

References

Summary

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