How To Install transfig on CentOS 8

transfig is Utility for converting FIG files (made by xfig) to other formats

Introduction

In this tutorial we learn how to install transfig on CentOS 8.

What is transfig

The transfig utility creates a makefile which translates FIG (created by xfig) or PIC figures into a specified LaTeX graphics language (for example, PostScript(TM)). Transfig is used to create TeX documents which are portable (i.e., they can be printed in a wide variety of environments). Install transfig if you need a utility for translating FIG or PIC figures into certain graphics languages.

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

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

sudo dnf -y install transfig

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

sudo yum -y install transfig

How To Uninstall transfig on CentOS 8

To uninstall only the transfig package we can use the following command:

sudo dnf remove transfig

transfig Package Contents on CentOS 8

/usr/bin/fig2dev
/usr/bin/fig2ps2tex
/usr/bin/pic2tpic
/usr/bin/transfig
/usr/lib/.build-id
/usr/lib/.build-id/1f
/usr/lib/.build-id/1f/971d7d7bca43294824bc4799861b5ce2c8b417
/usr/lib/.build-id/82
/usr/lib/.build-id/82/2d3a750d32d9ff29231e15e734e752a0e1edf0
/usr/share/doc/transfig
/usr/share/doc/transfig/manual.pdf
/usr/share/fig2dev/bitmaps/bricks.bmp
/usr/share/fig2dev/bitmaps/circles.bmp
/usr/share/fig2dev/bitmaps/crosshatch.bmp
/usr/share/fig2dev/bitmaps/crosshatch30.bmp
/usr/share/fig2dev/bitmaps/crosshatch45.bmp
/usr/share/fig2dev/bitmaps/dash.bmp
/usr/share/fig2dev/bitmaps/dashDot.bmp
/usr/share/fig2dev/bitmaps/dashDotDot.bmp
/usr/share/fig2dev/bitmaps/dashDotDotDot.bmp
/usr/share/fig2dev/bitmaps/dot.bmp
/usr/share/fig2dev/bitmaps/fishscales.bmp
/usr/share/fig2dev/bitmaps/hexagons.bmp
/usr/share/fig2dev/bitmaps/horiz_saw.bmp
/usr/share/fig2dev/bitmaps/horizontal.bmp
/usr/share/fig2dev/bitmaps/left30.bmp
/usr/share/fig2dev/bitmaps/left45.bmp
/usr/share/fig2dev/bitmaps/leftshingle.bmp
/usr/share/fig2dev/bitmaps/octagons.bmp
/usr/share/fig2dev/bitmaps/p13.bmp
/usr/share/fig2dev/bitmaps/right30.bmp
/usr/share/fig2dev/bitmaps/right45.bmp
/usr/share/fig2dev/bitmaps/rightshingle.bmp
/usr/share/fig2dev/bitmaps/small_fishscales.bmp
/usr/share/fig2dev/bitmaps/sp0.bmp
/usr/share/fig2dev/bitmaps/sp1.bmp
/usr/share/fig2dev/bitmaps/sp10.bmp
/usr/share/fig2dev/bitmaps/sp11.bmp
/usr/share/fig2dev/bitmaps/sp12.bmp
/usr/share/fig2dev/bitmaps/sp13.bmp
/usr/share/fig2dev/bitmaps/sp14.bmp
/usr/share/fig2dev/bitmaps/sp15.bmp
/usr/share/fig2dev/bitmaps/sp16.bmp
/usr/share/fig2dev/bitmaps/sp17.bmp
/usr/share/fig2dev/bitmaps/sp18.bmp
/usr/share/fig2dev/bitmaps/sp19.bmp
/usr/share/fig2dev/bitmaps/sp2.bmp
/usr/share/fig2dev/bitmaps/sp20.bmp
/usr/share/fig2dev/bitmaps/sp3.bmp
/usr/share/fig2dev/bitmaps/sp4.bmp
/usr/share/fig2dev/bitmaps/sp5.bmp
/usr/share/fig2dev/bitmaps/sp6.bmp
/usr/share/fig2dev/bitmaps/sp7.bmp
/usr/share/fig2dev/bitmaps/sp8.bmp
/usr/share/fig2dev/bitmaps/sp9.bmp
/usr/share/fig2dev/bitmaps/vert_bricks.bmp
/usr/share/fig2dev/bitmaps/vert_leftshingle.bmp
/usr/share/fig2dev/bitmaps/vert_rightshingle.bmp
/usr/share/fig2dev/bitmaps/vert_saw.bmp
/usr/share/fig2dev/bitmaps/vertical.bmp
/usr/share/fig2dev/i18n/cs_CZ.ps
/usr/share/fig2dev/i18n/hr_HR.ps
/usr/share/fig2dev/i18n/hu_HU.ps
/usr/share/fig2dev/i18n/ja.ps
/usr/share/fig2dev/i18n/ja_JP.EUC.ps
/usr/share/fig2dev/i18n/ja_JP.eucJP.ps
/usr/share/fig2dev/i18n/ja_JP.ps
/usr/share/fig2dev/i18n/ja_JP.ujis.ps
/usr/share/fig2dev/i18n/japanese.ps
/usr/share/fig2dev/i18n/ko.ps
/usr/share/fig2dev/i18n/ko_KR.EUC.ps
/usr/share/fig2dev/i18n/ko_KR.eucKR.ps
/usr/share/fig2dev/i18n/ko_KR.ps
/usr/share/fig2dev/i18n/korean.ps
/usr/share/fig2dev/i18n/pl_PL.ps
/usr/share/fig2dev/i18n/ro_RO.ps
/usr/share/fig2dev/i18n/ru_RU.KOI8-R.ps
/usr/share/fig2dev/i18n/sk_SK.ps
/usr/share/fig2dev/i18n/sl_SI.ps
/usr/share/fig2dev/rgb.txt
/usr/share/man/man1/fig2dev.1.gz
/usr/share/man/man1/fig2ps2tex.1.gz
/usr/share/man/man1/pic2tpic.1.gz
/usr/share/man/man1/transfig.1.gz

References

Summary

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