How To Install python3-mapbox-earcut on Fedora 36

In this tutorial we learn how to install python3-mapbox-earcut in Fedora 36. python3-mapbox-earcut is Python bindings to the mapbox earcut C++ library

Introduction

In this tutorial we learn how to install python3-mapbox-earcut on Fedora 36.

What is python3-mapbox-earcut

Python bindings for the C++ implementation of the Mapbox Earcut library, which provides very fast and quite robust triangulation of 2D polygons. Original code Original description The library implements a modified ear slicing algorithm, optimized by z-order curve hashing and extended to handle holes, twisted polygons, degeneracies and self-intersections in a way that doesn’t guarantee correctness of triangulation, but attempts to always produce acceptable results for practical data like geographical shapes.

We can use yum or dnf to install python3-mapbox-earcut on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-mapbox-earcut.

Install python3-mapbox-earcut on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-mapbox-earcut using dnf by running the following command:

sudo dnf -y install python3-mapbox-earcut

Install python3-mapbox-earcut on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-mapbox-earcut using yum by running the following command:

sudo yum -y install python3-mapbox-earcut

How To Uninstall python3-mapbox-earcut on Fedora 36

To uninstall only the python3-mapbox-earcut package we can use the following command:

sudo dnf remove python3-mapbox-earcut

python3-mapbox-earcut Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/34
/usr/lib/.build-id/34/2c178da200d628cd10ea1b296e1c61b681ac58
/usr/lib64/python3.10/site-packages/mapbox_earcut-1.0.0.dist-info
/usr/lib64/python3.10/site-packages/mapbox_earcut-1.0.0.dist-info/INSTALLER
/usr/lib64/python3.10/site-packages/mapbox_earcut-1.0.0.dist-info/LICENSE.md
/usr/lib64/python3.10/site-packages/mapbox_earcut-1.0.0.dist-info/METADATA
/usr/lib64/python3.10/site-packages/mapbox_earcut-1.0.0.dist-info/WHEEL
/usr/lib64/python3.10/site-packages/mapbox_earcut-1.0.0.dist-info/top_level.txt
/usr/lib64/python3.10/site-packages/mapbox_earcut.cpython-310-x86_64-linux-gnu.so
/usr/share/doc/python3-mapbox-earcut
/usr/share/doc/python3-mapbox-earcut/README.md

References

Summary

In this tutorial we learn how to install python3-mapbox-earcut on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).