How To Install cjk-latex on Ubuntu 22.04

In this tutorial we learn how to install cjk-latex on Ubuntu 22.04. cjk-latex is installs all LaTeX CJK packages - dummy package

Introduction

In this tutorial we learn how to install cjk-latex on Ubuntu 22.04.

What is cjk-latex

cjk-latex is:

This is a dummy package that allows you to smoothly upgrade from the old cjk-latex to the current latex-cjk-common packages. After the installation of the latex-cjk-common packages, you can safely delete this package.

There are three methods to install cjk-latex on Ubuntu 22.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 cjk-latex Using apt-get

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

sudo apt-get update

After updating apt database, We can install cjk-latex using apt-get by running the following command:

sudo apt-get -y install cjk-latex

Install cjk-latex Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install cjk-latex

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

sudo aptitude -y install cjk-latex

How To Uninstall cjk-latex on Ubuntu 22.04

To uninstall only the cjk-latex package we can use the following command:

sudo apt-get remove cjk-latex

Uninstall cjk-latex And Its Dependencies

To uninstall cjk-latex and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:

sudo apt-get -y autoremove cjk-latex

Remove cjk-latex Configurations and Data

To remove cjk-latex configuration and data from Ubuntu 22.04 we can use the following command:

sudo apt-get -y purge cjk-latex

Remove cjk-latex configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge cjk-latex

References

Summary

In this tutorial we learn how to install cjk-latex package on Ubuntu 22.04 using different package management tools: apt, apt-get and aptitude.