How To Install potrace on AlmaLinux 8

In this tutorial we learn how to install potrace in AlmaLinux 8. potrace is Transform bitmaps into vector graphics

Introduction

In this tutorial we learn how to install potrace on AlmaLinux 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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install potrace.

Install potrace on AlmaLinux 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 AlmaLinux 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 AlmaLinux 8

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

sudo dnf remove potrace

References

Summary

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