How To Install texlive-generic-recommended on Ubuntu 18.04

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

Introduction

In this tutorial we learn how to install texlive-generic-recommended on Ubuntu 18.04.

texlive-generic-recommended is:

This is a transitional package for texlive-generic-recommended to ensure proper upgrade to texlive-plain-generic. It can be safely removed after the installation is complete.

There are three methods to install texlive-generic-recommended 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.

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

sudo apt-get update

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

sudo apt-get -y install texlive-generic-recommended

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install texlive-generic-recommended

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-generic-recommended using aptitude by running the following command:

sudo aptitude -y install texlive-generic-recommended

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

sudo apt-get remove texlive-generic-recommended

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

sudo apt-get -y autoremove texlive-generic-recommended

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

sudo apt-get -y purge texlive-generic-recommended

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

sudo apt-get -y autoremove --purge texlive-generic-recommended

References

Summary

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