How To Install potrace on CentOS 7

In this tutorial we learn how to install potrace on CentOS 7. potrace is Transform bitmaps into vector graphics

Introduction

In this tutorial we learn how to install potrace on CentOS 7.

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 PostScript, 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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install potrace.

Install potrace on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install potrace

Install potrace on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install potrace

How To Uninstall potrace on CentOS 7

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 CentOS 7 using yum and dnf.