How To Install texlive-ps2eps on CentOS 8

texlive-ps2eps is Produce Encapsulated PostScript from PostScript

Introduction

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

What is texlive-ps2eps

Produce Encapsulated PostScript Files (EPS/EPSF) from a one-page PostScript document, or any PostScript document. A correct Bounding Box is calculated for the EPS files and some PostScript command sequences that can produce erroneous results on printers are filtered. The input is cropped to include just the image contained in the PostScript file. The EPS files can then be included into TeX documents. Other programs like ps2epsi (a script distributed with ghostscript) don’t always calculate the correct bounding box (because the values are put on the PostScript stack which may get corrupted by bad PostScript code) or they round it off, resulting in clipping the image. Therefore ps2eps uses a resolution of 144 dpi to get the correct bounding box. Included in the distribution is the bbox program, an application to produce Bounding Box values for rawppm or rawpbm format files.

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

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

sudo dnf -y install texlive-ps2eps

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

sudo yum -y install texlive-ps2eps

How To Uninstall texlive-ps2eps on CentOS 8

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

sudo dnf remove texlive-ps2eps

texlive-ps2eps Package Contents on CentOS 8

/usr/bin/bbox
/usr/bin/ps2eps
/usr/lib/.build-id
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/ef8a526d2cef66f22fb6babe378fcd54b521c2
/usr/share/licenses/texlive-ps2eps
/usr/share/licenses/texlive-ps2eps/gpl.txt
/usr/share/man/man1/bbox.1.gz
/usr/share/man/man1/ps2eps.1.gz
/usr/share/texlive/texmf-dist/scripts/ps2eps
/usr/share/texlive/texmf-dist/scripts/ps2eps/ps2eps.pl

References

Summary

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