How To Install texlive-geometry on CentOS 8

texlive-geometry is Flexible and complete interface to document dimensions

Introduction

In this tutorial we learn how to install texlive-geometry on CentOS 8.

What is texlive-geometry

The package provides an easy and flexible user interface to customize page layout, implementing auto-centering and auto- balancing mechanisms so that the users have only to give the least description for the page layout. For example, if you want to set each margin 2cm without header space, what you need is just \usepackage[margin=2cm,nohead]{geometry}. The package knows about all the standard paper sizes, so that the user need not know what the nominal ‘real’ dimensions of the paper are, just its standard name (such as a4, letter, etc.). An important feature is the package’s ability to communicate the paper size it’s set up to the output (whether via DVI \specials or via direct interaction with PDF(La)TeX).

We can use yum or dnf to install texlive-geometry on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install texlive-geometry.

Install texlive-geometry on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install texlive-geometry using dnf by running the following command:

sudo dnf -y install texlive-geometry

Install texlive-geometry on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install texlive-geometry

How To Uninstall texlive-geometry on CentOS 8

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

sudo dnf remove texlive-geometry

texlive-geometry Package Contents on CentOS 8

/usr/share/licenses/texlive-geometry
/usr/share/licenses/texlive-geometry/lppl1.txt
/usr/share/texlive/texmf-dist/doc/latex/geometry
/usr/share/texlive/texmf-dist/doc/latex/geometry/README
/usr/share/texlive/texmf-dist/doc/latex/geometry/changes.txt
/usr/share/texlive/texmf-dist/doc/latex/geometry/geometry-samples.tex
/usr/share/texlive/texmf-dist/doc/latex/geometry/geometry.cfg
/usr/share/texlive/texmf-dist/doc/latex/geometry/geometry.pdf
/usr/share/texlive/texmf-dist/tex/latex/geometry
/usr/share/texlive/texmf-dist/tex/latex/geometry/geometry.sty

References

Summary

In this tutorial we learn how to install texlive-geometry on CentOS 8 using yum and dnf.