How To Install texlive-lang-arabic on Ubuntu 18.04

In this tutorial we learn how to install texlive-lang-arabic on Ubuntu 18.04. texlive-lang-arabic is TeX Live

Introduction

In this tutorial we learn how to install texlive-lang-arabic on Ubuntu 18.04.

What is texlive-lang-arabic

texlive-lang-arabic is:

Support for Arabic and Persian.

This package includes the following CTAN packages:

alkalami – A font for Arabic-based writing systems in Nigeria and Niger

amiri – A classical Arabic typeface, Naskh style

arabi – (La)TeX support for Arabic and Farsi, compliant with Babel

arabi-add – Using hyperref and bookmark packages with arabic and farsi languages

arabluatex – An ArabTeX-like interface for LuaLaTeX

arabtex – Macros and fonts for typesetting Arabic

bidi – Bidirectional typesetting in plain TeX and LaTeX, using XeTeX

bidihl – Experimental bidi-aware text highlighting

dad – Simple typesetting system for mixed Arabic/Latin documents

ghab – Typeset ghab boxes in LaTeX

hyphen-arabic – (No) Arabic hyphenation patterns.

hyphen-farsi – (No) Persian hyphenation patterns.

imsproc – Typeset IMS conference proceedings

lshort-persian – Persian (Farsi) introduction to LaTeX

luabidi – Bidirectional typesetting with LuaLaTeX

na-box – Arabic-aware version of pas-cours package

persian-bib – Persian translations of classic BibTeX styles

sexam – Package for typesetting arabic exam scripts

simurgh – Typeset Parsi in LuaLaTeX

tram – Typeset tram boxes in LaTeX

xepersian – Persian for LaTeX, using XeTeX

There are three methods to install texlive-lang-arabic 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 texlive-lang-arabic Using apt-get

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

sudo apt-get update

After updating apt database, We can install texlive-lang-arabic using apt-get by running the following command:

sudo apt-get -y install texlive-lang-arabic

Install texlive-lang-arabic Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install texlive-lang-arabic using apt by running the following command:

sudo apt -y install texlive-lang-arabic

Install texlive-lang-arabic 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 texlive-lang-arabic using aptitude by running the following command:

sudo aptitude -y install texlive-lang-arabic

How To Uninstall texlive-lang-arabic on Ubuntu 18.04

To uninstall only the texlive-lang-arabic package we can use the following command:

sudo apt-get remove texlive-lang-arabic

Uninstall texlive-lang-arabic And Its Dependencies

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

sudo apt-get -y autoremove texlive-lang-arabic

Remove texlive-lang-arabic Configurations and Data

To remove texlive-lang-arabic configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge texlive-lang-arabic

Remove texlive-lang-arabic configuration, data, and all of its dependencies

We can use the following command to remove texlive-lang-arabic configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge texlive-lang-arabic

References

Summary

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