How To Install gl2ps on Fedora 34

gl2ps is An OpenGL to PostScript printing library An OpenGL to PostScript printing library

Introduction

In this tutorial we learn how to install gl2ps on Fedora 34.

What is gl2ps

GL2PS is a C library providing high quality vector output for any OpenGL application. The main difference between GL2PS and other similar libraries is the use of sorting algorithms capable of handling intersecting and stretched polygons, as well as non manifold objects. GL2PS provides advanced smooth shading and text rendering, culling of invisible primitives, mixed vector/bitmap output, and much more… GL2PS can currently create PostScript (PS), Encapsulated PostScript (EPS) and Portable Document Format (PDF) files, as well as LaTeX files for the text fragments. Adding new vector output formats should be relatively easy (and amongst the formats we would be interested in adding, SVG is first in line). Meanwhile, you can use the excellent pstoedit program to transform the PostScript files generated by GL2PS into many other vector formats such as xfig, cgm, wmf, etc. gl2ps 1.4.2 3.fc34 x86_64 65 k gl2ps-1.4.2-3.fc34.src.rpm fedora An OpenGL to PostScript printing library http LGPLv2+ or GL2PS GL2PS is a C library providing high quality vector output for any OpenGL application. The main difference between GL2PS and other similar libraries is the use of sorting algorithms capable of handling intersecting and stretched polygons, as well as non manifold objects. GL2PS provides advanced smooth shading and text rendering, culling of invisible primitives, mixed vector/bitmap output, and much more… GL2PS can currently create PostScript (PS), Encapsulated PostScript (EPS) and Portable Document Format (PDF) files, as well as LaTeX files for the text fragments. Adding new vector output formats should be relatively easy (and amongst the formats we would be interested in adding, SVG is first in line). Meanwhile, you can use the excellent pstoedit program to transform the PostScript files generated by GL2PS into many other vector formats such as xfig, cgm, wmf, etc.

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

Install gl2ps on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install gl2ps

Install gl2ps on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

After updating yum database, We can install gl2ps using yum by running the following command:

sudo yum -y install gl2ps

How To Uninstall gl2ps on Fedora 34

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

sudo dnf remove gl2ps

gl2ps Package Contents on Fedora 34

/usr/lib/.build-id
/usr/lib/.build-id/54
/usr/lib/.build-id/54/88cac3d873a10dc8577615d4e3e3e8630fb3d0
/usr/lib/libgl2ps.so.1
/usr/lib/libgl2ps.so.1.4.2
/usr/share/doc/gl2ps
/usr/share/doc/gl2ps/README.txt
/usr/share/licenses/gl2ps
/usr/share/licenses/gl2ps/COPYING.GL2PS
/usr/share/licenses/gl2ps/COPYING.LGPL
/usr/lib/.build-id
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/3027b9f9cad5b807a0aed2c07c13d9b4c01dcb
/usr/lib64/libgl2ps.so.1
/usr/lib64/libgl2ps.so.1.4.2
/usr/share/doc/gl2ps
/usr/share/doc/gl2ps/README.txt
/usr/share/licenses/gl2ps
/usr/share/licenses/gl2ps/COPYING.GL2PS
/usr/share/licenses/gl2ps/COPYING.LGPL

References

Summary

In this tutorial we learn how to install gl2ps on Fedora 34 using yum and dnf.