How To Install language-pack-gnome-zh-hans on Ubuntu 18.04

In this tutorial we learn how to install language-pack-gnome-zh-hans on Ubuntu 18.04. language-pack-gnome-zh-hans is GNOME translation updates for language Simplified Chinese

Introduction

In this tutorial we learn how to install language-pack-gnome-zh-hans on Ubuntu 18.04.

What is language-pack-gnome-zh-hans

language-pack-gnome-zh-hans is:

Translation data updates for all supported GNOME packages for: Simplified Chinese

language-pack-gnome-zh-hans-base provides the bulk of translation data and is updated only seldom. This package provides frequent translation updates.

There are three methods to install language-pack-gnome-zh-hans 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 language-pack-gnome-zh-hans Using apt-get

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

sudo apt-get update

After updating apt database, We can install language-pack-gnome-zh-hans using apt-get by running the following command:

sudo apt-get -y install language-pack-gnome-zh-hans

Install language-pack-gnome-zh-hans Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install language-pack-gnome-zh-hans using apt by running the following command:

sudo apt -y install language-pack-gnome-zh-hans

Install language-pack-gnome-zh-hans 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 language-pack-gnome-zh-hans using aptitude by running the following command:

sudo aptitude -y install language-pack-gnome-zh-hans

How To Uninstall language-pack-gnome-zh-hans on Ubuntu 18.04

To uninstall only the language-pack-gnome-zh-hans package we can use the following command:

sudo apt-get remove language-pack-gnome-zh-hans

Uninstall language-pack-gnome-zh-hans And Its Dependencies

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

sudo apt-get -y autoremove language-pack-gnome-zh-hans

Remove language-pack-gnome-zh-hans Configurations and Data

To remove language-pack-gnome-zh-hans configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge language-pack-gnome-zh-hans

Remove language-pack-gnome-zh-hans configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge language-pack-gnome-zh-hans

References

Summary

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