How To Install python3-Levenshtein on Fedora 36

In this tutorial we learn how to install python3-Levenshtein in Fedora 36. python3-Levenshtein is Python extension computing string distances and similarities

Introduction

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

What is python3-Levenshtein

Levenshtein computes Levenshtein distances, similarity ratios, generalized medians and set medians of Strings and Unicodes. Because it’s implemented in C, it’s much faster than corresponding Python 3 library functions and methods.

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

Install python3-Levenshtein 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-Levenshtein using dnf by running the following command:

sudo dnf -y install python3-Levenshtein

Install python3-Levenshtein 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-Levenshtein using yum by running the following command:

sudo yum -y install python3-Levenshtein

How To Uninstall python3-Levenshtein on Fedora 36

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

sudo dnf remove python3-Levenshtein

python3-Levenshtein Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/f2559deaf5f60c4fc61b2a6ed920528125113b
/usr/lib64/python3.10/site-packages/Levenshtein
/usr/lib64/python3.10/site-packages/Levenshtein/StringMatcher.py
/usr/lib64/python3.10/site-packages/Levenshtein/__init__.py
/usr/lib64/python3.10/site-packages/Levenshtein/__pycache__
/usr/lib64/python3.10/site-packages/Levenshtein/__pycache__/StringMatcher.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/Levenshtein/__pycache__/StringMatcher.cpython-310.pyc
/usr/lib64/python3.10/site-packages/Levenshtein/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/Levenshtein/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/Levenshtein/_levenshtein.c
/usr/lib64/python3.10/site-packages/Levenshtein/_levenshtein.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/Levenshtein/_levenshtein.h
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info/PKG-INFO
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info/SOURCES.txt
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info/dependency_links.txt
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info/entry_points.txt
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info/namespace_packages.txt
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info/not-zip-safe
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info/requires.txt
/usr/lib64/python3.10/site-packages/python_Levenshtein-0.12.0-py3.10.egg-info/top_level.txt
/usr/share/doc/python3-Levenshtein
/usr/share/doc/python3-Levenshtein/NEWS
/usr/share/doc/python3-Levenshtein/README.rst
/usr/share/licenses/python3-Levenshtein
/usr/share/licenses/python3-Levenshtein/COPYING

References

Summary

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