How To Install libsunpinyin-dev on Ubuntu 18.04

In this tutorial we learn how to install libsunpinyin-dev on Ubuntu 18.04. libsunpinyin-dev is Simplified Chinese Input Method from SUN (development)

Introduction

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

What is libsunpinyin-dev

libsunpinyin-dev is:

Sunpinyin is a statistical language model (SLM) based input method engine for Simplified Chinese, it features full sentence input.

This package contains the development header files that allows others to write their own front-end for sunpinyin.

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

sudo apt-get -y install libsunpinyin-dev

Install libsunpinyin-dev Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libsunpinyin-dev

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

sudo aptitude -y install libsunpinyin-dev

How To Uninstall libsunpinyin-dev on Ubuntu 18.04

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

sudo apt-get remove libsunpinyin-dev

Uninstall libsunpinyin-dev And Its Dependencies

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

sudo apt-get -y autoremove libsunpinyin-dev

Remove libsunpinyin-dev Configurations and Data

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

sudo apt-get -y purge libsunpinyin-dev

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

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

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

References

Summary

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