How To Install python2-Levenshtein on Rocky Linux 8

In this tutorial we learn how to install python2-Levenshtein on Rocky Linux 8. python2-Levenshtein is Python extension computing string distances and similarities

Introduction

In this tutorial we learn how to install python2-Levenshtein on Rocky Linux 8.

What is python2-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 2 library functions and methods.

We can use yum or dnf to install python2-Levenshtein on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-Levenshtein.

Install python2-Levenshtein on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install python2-Levenshtein

Install python2-Levenshtein on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python2-Levenshtein using yum by running the following command:

sudo yum -y install python2-Levenshtein

How To Uninstall python2-Levenshtein on Rocky Linux 8

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

sudo dnf remove python2-Levenshtein

python2-Levenshtein Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/59
/usr/lib/.build-id/59/00831d67b8d1139b9fdea94f781814dcae8bab
/usr/lib64/python2.7/site-packages/Levenshtein
/usr/lib64/python2.7/site-packages/Levenshtein/StringMatcher.py
/usr/lib64/python2.7/site-packages/Levenshtein/StringMatcher.pyc
/usr/lib64/python2.7/site-packages/Levenshtein/StringMatcher.pyo
/usr/lib64/python2.7/site-packages/Levenshtein/__init__.py
/usr/lib64/python2.7/site-packages/Levenshtein/__init__.pyc
/usr/lib64/python2.7/site-packages/Levenshtein/__init__.pyo
/usr/lib64/python2.7/site-packages/Levenshtein/_levenshtein.c
/usr/lib64/python2.7/site-packages/Levenshtein/_levenshtein.h
/usr/lib64/python2.7/site-packages/Levenshtein/_levenshtein.so
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info/PKG-INFO
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info/SOURCES.txt
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info/dependency_links.txt
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info/entry_points.txt
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info/namespace_packages.txt
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info/not-zip-safe
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info/requires.txt
/usr/lib64/python2.7/site-packages/python_Levenshtein-0.12.0-py2.7.egg-info/top_level.txt
/usr/share/doc/python2-Levenshtein
/usr/share/doc/python2-Levenshtein/NEWS
/usr/share/doc/python2-Levenshtein/README.rst
/usr/share/licenses/python2-Levenshtein
/usr/share/licenses/python2-Levenshtein/COPYING

References

Summary

In this tutorial we learn how to install python2-Levenshtein on Rocky Linux 8 using yum and dnf.