How To Install texlive-lang-portuguese on Ubuntu 18.04

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

Introduction

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

What is texlive-lang-portuguese

texlive-lang-portuguese is:

Support for Portuguese.

This package includes the following CTAN packages:

babel-portuges – Babel support for Portuges

beamer-tut-pt – An introduction to the Beamer class, in Portuguese

cursolatex – A LaTeX tutorial

feupphdteses – Typeset Engineering PhD theses at the University of Porto

hyphen-portuguese – Portuguese hyphenation patterns.

latexcheat-ptbr – A LaTeX cheat sheet, in Brazilian Portuguese

lshort-portuguese – Introduction to LaTeX in Portuguese

ordinalpt – Counters as ordinal numbers in Portuguese

xypic-tut-pt – A tutorial for XY-pic, in Portuguese

There are three methods to install texlive-lang-portuguese 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-portuguese 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-portuguese using apt-get by running the following command:

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

Install texlive-lang-portuguese Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install texlive-lang-portuguese

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

sudo aptitude -y install texlive-lang-portuguese

How To Uninstall texlive-lang-portuguese on Ubuntu 18.04

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

sudo apt-get remove texlive-lang-portuguese

Uninstall texlive-lang-portuguese And Its Dependencies

To uninstall texlive-lang-portuguese 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-portuguese

Remove texlive-lang-portuguese Configurations and Data

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

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

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

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

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

References

Summary

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