How To Install kanjidic-xml on Ubuntu 18.04
Introduction
In this tutorial we learn how to install kanjidic-xml on Ubuntu 18.04.
What is kanjidic-xml
kanjidic-xml is:
The KANJIDIC file contains comprehensive information about Japanese kanji. It is a XML file containing 6,355 kanji from JIS X 0208, the 5,801 kanji from JIS X 0212 and the 3,625 kanji from JIS X 0213.
There are three methods to install kanjidic-xml 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 kanjidic-xml Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get update
After updating apt database, We can install kanjidic-xml using apt-get by running the following command:
sudo apt-get -y install kanjidic-xml
Install kanjidic-xml Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install kanjidic-xml using apt by running the following command:
sudo apt -y install kanjidic-xml
Install kanjidic-xml 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 kanjidic-xml using aptitude by running the following command:
sudo aptitude -y install kanjidic-xml
How To Uninstall kanjidic-xml on Ubuntu 18.04
To uninstall only the kanjidic-xml package we can use the following command:
sudo apt-get remove kanjidic-xml
Uninstall kanjidic-xml And Its Dependencies
To uninstall kanjidic-xml and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove kanjidic-xml
Remove kanjidic-xml Configurations and Data
To remove kanjidic-xml configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge kanjidic-xml
Remove kanjidic-xml configuration, data, and all of its dependencies
We can use the following command to remove kanjidic-xml configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge kanjidic-xml
References
Summary
In this tutorial we learn how to install kanjidic-xml package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.