How To Install potrace on CentOS 8
Introduction
In this tutorial we learn how to install potrace
on CentOS 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. potrace 1.15 3.el8 x86_64 122 k potrace-1.15-3.el8.src.rpm appstream Transform bitmaps into vector graphics http GPLv2+ 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 CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install potrace.
Install potrace 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 potrace
using dnf
by running the following command:
sudo dnf -y install potrace
Install potrace 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 potrace
using yum
by running the following command:
sudo yum -y install potrace
How To Uninstall potrace on CentOS 8
To uninstall only the potrace
package we can use the following command:
sudo dnf remove potrace
potrace Package Contents on CentOS 8
/usr/bin/mkbitmap
/usr/bin/potrace
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/9c22443d9c5ed28776660c59c5571b006874b8
/usr/lib/.build-id/82
/usr/lib/.build-id/82/ba459e01ef302b0bcbbd33336f442510913475
/usr/lib/.build-id/cc
/usr/lib/.build-id/cc/5fa6e8234f1faa1846d30023936b58c7398f81
/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/36
/usr/lib/.build-id/36/9d21e549d217239f1e8b84a119ea7e9b38ffe3
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/d64eaeabff337634ba15233f0571bdecb56d4c
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/66da7ce7f9551226f3214d83271e65c8febe95
/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
- [potrace website](http://potrace.sourceforge.net http://potrace.sourceforge.net)
Summary
In this tutorial we learn how to install potrace
on CentOS 8 using yum and dnf.