How To Install potrace on Rocky Linux 8

In this tutorial we learn how to install potrace on Rocky Linux 8. potrace is Transform bitmaps into vector graphics

Introduction

In this tutorial we learn how to install potrace on Rocky Linux 8.

What is potrace

Potrace is a utility for tracing a bitmap, which means, transforming a bitmap into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP format), and the default output is an encapsulated PostScript file (EPS). A typical use is to create EPS files from scanned data, such as company or university logos, handwritten notes, etc. The resulting image is not “jaggy” like a bitmap, but smooth. It can then be rendered at any resolution. Potrace can currently produce the following output formats PDF, SVG (scalable vector graphics), Xfig, Gimppath, and PGM (for easy antialiasing). Additional backends might be added in the future. Mkbitmap is a program distributed with Potrace which can be used to pre-process the input for better tracing behavior on greyscale and color images.

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

Install potrace on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install potrace

Install potrace on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install potrace

How To Uninstall potrace on Rocky Linux 8

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

sudo dnf remove potrace

potrace Package Contents on Rocky Linux 8

/usr/bin/mkbitmap
/usr/bin/potrace
/usr/lib/.build-id
/usr/lib/.build-id/a4
/usr/lib/.build-id/a4/de551f6a841a895f330bf831141448b142c7c9
/usr/lib/.build-id/ee
/usr/lib/.build-id/ee/5b06afcd11219aeda6dd03c0450025c98b8dee
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/c6d3a204a4a38163d21ee94fab5c685c537359
/usr/lib/libpotrace.so.0
/usr/lib/libpotrace.so.0.0.5
/usr/share/doc/potrace
/usr/share/doc/potrace/AUTHORS
/usr/share/doc/potrace/COPYING
/usr/share/doc/potrace/ChangeLog
/usr/share/doc/potrace/NEWS
/usr/share/doc/potrace/README
/usr/share/doc/potrace/placement.pdf
/usr/share/man/man1/mkbitmap.1.gz
/usr/share/man/man1/potrace.1.gz
/usr/bin/mkbitmap
/usr/bin/potrace
/usr/lib/.build-id
/usr/lib/.build-id/bb
/usr/lib/.build-id/bb/01be14b8b35888af522d1b49fdb21a57bde78a
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/bb4e611cb44071c63e98cac1f0f4dab501e657
/usr/lib/.build-id/fd
/usr/lib/.build-id/fd/f30dbf37371797ab416ad635c3a35917ea402d
/usr/lib64/libpotrace.so.0
/usr/lib64/libpotrace.so.0.0.5
/usr/share/doc/potrace
/usr/share/doc/potrace/AUTHORS
/usr/share/doc/potrace/COPYING
/usr/share/doc/potrace/ChangeLog
/usr/share/doc/potrace/NEWS
/usr/share/doc/potrace/README
/usr/share/doc/potrace/placement.pdf
/usr/share/man/man1/mkbitmap.1.gz
/usr/share/man/man1/potrace.1.gz

References

Summary

In this tutorial we learn how to install potrace on Rocky Linux 8 using yum and dnf.