How To Install texlive-dvipng on CentOS 8

texlive-dvipng is A fast DVI to PNG/GIF converter

Introduction

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

What is texlive-dvipng

This program makes PNG and/or GIF graphics from DVI files as obtained from TeX and its relatives. Its benefits include Speed. It offers very fast rendering of DVI as bitmap files, which makes it suitable for generating large amounts of images on-the-fly, as needed in preview-latex, WeBWorK and others; - It does not read the postamble, so it can be started before TeX finishes. There is a –follow switch that makes dvipng wait at end-of-file for further output, unless it finds the POST marker that indicates the end of the DVI; - Interactive query of options. dvipng can read options interactively through stdin, and all options are usable. It is even possible to change the input file through this interface. - Support for PK, VF, PostScript Type1, and TrueType fonts, colour specials, and inclusion of PostScript, PNG, JPEG or GIF images.

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

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

sudo dnf -y install texlive-dvipng

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

sudo yum -y install texlive-dvipng

How To Uninstall texlive-dvipng on CentOS 8

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

sudo dnf remove texlive-dvipng

texlive-dvipng Package Contents on CentOS 8

/usr/bin/dvigif
/usr/bin/dvipng
/usr/lib/.build-id
/usr/lib/.build-id/39
/usr/lib/.build-id/39/b756657d42a70c5b80d96f8774378205ec2a8f
/usr/share/info/dvipng.info.gz
/usr/share/licenses/texlive-dvipng
/usr/share/licenses/texlive-dvipng/lgpl2.1.txt
/usr/share/man/man1/dvigif.1.gz
/usr/share/man/man1/dvipng.1.gz
/usr/share/texlive/texmf-dist/doc/dvipng
/usr/share/texlive/texmf-dist/doc/dvipng/dvipng.html
/usr/share/texlive/texmf-dist/doc/dvipng/dvipng.pdf

References

Summary

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