How To Install naist-jdic-utf8 on Ubuntu 18.04

In this tutorial we learn how to install naist-jdic-utf8 on Ubuntu 18.04. naist-jdic-utf8 is free Japanese Dictionaries for ChaSen (replacement of ipadic) in UTF-8

Introduction

In this tutorial we learn how to install naist-jdic-utf8 on Ubuntu 18.04.

What is naist-jdic-utf8

naist-jdic-utf8 is:

NAIST Japanese Dictionary is a Dictionary for ChaSen, Japanese morphological analysis implementation.

This is based on ipadic, however it is released under BSD style license now by NAIST (Nara Institute of Science and Technology, Japan), so it is free and can replace ipadic.

This package generates UTF-8 data from original naist-jdic.

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

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

sudo apt-get update

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

sudo apt-get -y install naist-jdic-utf8

Install naist-jdic-utf8 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install naist-jdic-utf8 using apt by running the following command:

sudo apt -y install naist-jdic-utf8

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

sudo aptitude -y install naist-jdic-utf8

How To Uninstall naist-jdic-utf8 on Ubuntu 18.04

To uninstall only the naist-jdic-utf8 package we can use the following command:

sudo apt-get remove naist-jdic-utf8

Uninstall naist-jdic-utf8 And Its Dependencies

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

sudo apt-get -y autoremove naist-jdic-utf8

Remove naist-jdic-utf8 Configurations and Data

To remove naist-jdic-utf8 configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge naist-jdic-utf8

Remove naist-jdic-utf8 configuration, data, and all of its dependencies

We can use the following command to remove naist-jdic-utf8 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge naist-jdic-utf8

References

Summary

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