How To Install texlive-luatex on Ubuntu 20.04

In this tutorial we learn how to install texlive-luatex on Ubuntu 20.04. texlive-luatex is TeX Live

Introduction

In this tutorial we learn how to install texlive-luatex on Ubuntu 20.04.

What is texlive-luatex

texlive-luatex is:

Packages for LuaTeX, a Unicode-aware extension of pdfTeX, using Lua as an embedded scripting and extension language. http://luatex.org/

This package includes the following CTAN packages:

addliga – Access basic ligatures in legacy TrueType fonts

auto-pst-pdf-lua – Using LuaLaTeX together with PostScript code

barracuda – Draw barcodes with Lua

bezierplot – Approximate smooth function graphs with cubic bezier splines for use with TikZ or MetaPost

checkcites – Check citation commands in a document

chickenize – Use lua callbacks for “interesting” textual effects

combofont – Add NFSS-declarations of combo fonts to LuaLaTeX documents

cstypo – Czech typography rules enforced through LuaTeX hooks

ctablestack – Catcode table stable support

enigma – Encrypt documents with a three rotor Enigma

interpreter – Translate input files on the fly

kanaparser – Kana parser for LuaTeX

lua-visual-debug – Visual debugging with LuaLaTeX

lua2dox – Auto-documentation of lua code

luacode – Helper for executing lua code from within TeX

luacolor – Color support based on LuaTeX’s node attributes

luahbtex – LuaTeX with HarfBuzz library for glyph shaping

luahyphenrules – Loading patterns in LuaLaTeX with language.dat

luaimageembed – Embed images as base64-encoded strings

luaindex – Create index using LuaLaTeX

luainputenc – Replacing inputenc for use in LuaTeX

luaintro – Examples from the book “Einfuhrung in LuaTeX und LuaLaTeX”

lualatex-doc – A guide to use of LaTeX with LuaTeX

lualatex-math – Fixes for mathematics-related LuaLaTeX issues

lualatex-truncate – A wrapper for using the truncate package with LuaLaTeX

lualibs – Additional Lua functions for LuaTeX macro programmers

luamplib – Use LuaTeX’s built-in MetaPost interpreter

luaotfload – OpenType ’loader’ for Plain TeX and LaTeX

luapackageloader – Allow LuaTeX to load external Lua packages

luarandom – Create lists of random numbers

luatex85 – pdfTeX aliases for LuaTeX

luatexbase – Basic resource management for LuaTeX code

luatexko – Typeset Korean with Lua(La)TeX

luatextra – Additional macros for Plain TeX and LaTeX in LuaTeX

luavlna – Prevent line breaks after single letter words, units, or adademic titles

luaxml – Lua library for reading and serialising XML files

nodetree – Visualize node lists in a tree view

odsfile – Read OpenDocument Spreadsheet documents as LaTeX tables

optex – LuaTeX format based on Plain TeX and OPmac

pdfarticle – Class for pdf publications

placeat – Absolute content positioning

plantuml – Support for rendering UML diagrams using the syntax and tool of PlantUML

selnolig – Selectively disable typographic ligatures

spelling – Support for spell-checking of LuaTeX documents

typewriter – Typeset with a randomly variable monospace font

There are three methods to install texlive-luatex on Ubuntu 20.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-luatex 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-luatex using apt-get by running the following command:

sudo apt-get -y install texlive-luatex

Install texlive-luatex Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install texlive-luatex

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

sudo aptitude -y install texlive-luatex

How To Uninstall texlive-luatex on Ubuntu 20.04

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

sudo apt-get remove texlive-luatex

Uninstall texlive-luatex And Its Dependencies

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

sudo apt-get -y autoremove texlive-luatex

Remove texlive-luatex Configurations and Data

To remove texlive-luatex configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge texlive-luatex

Remove texlive-luatex configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge texlive-luatex

References

Summary

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