How To Install python3-Levenshtein on Rocky Linux 8
Introduction
In this tutorial we learn how to install python3-Levenshtein
on Rocky Linux 8.
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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python3-Levenshtein.
Install python3-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 python3-Levenshtein
using dnf
by running the following command:
sudo dnf -y install python3-Levenshtein
Install python3-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 python3-Levenshtein
using yum
by running the following command:
sudo yum -y install python3-Levenshtein
How To Uninstall python3-Levenshtein on Rocky Linux 8
To uninstall only the python3-Levenshtein
package we can use the following command:
sudo dnf remove python3-Levenshtein
python3-Levenshtein Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/60
/usr/lib/.build-id/60/f93fb7288bb0bd4c8d5f790fc23ee81f6fbada
/usr/lib64/python3.6/site-packages/Levenshtein
/usr/lib64/python3.6/site-packages/Levenshtein/StringMatcher.py
/usr/lib64/python3.6/site-packages/Levenshtein/__init__.py
/usr/lib64/python3.6/site-packages/Levenshtein/__pycache__
/usr/lib64/python3.6/site-packages/Levenshtein/__pycache__/StringMatcher.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/Levenshtein/__pycache__/StringMatcher.cpython-36.pyc
/usr/lib64/python3.6/site-packages/Levenshtein/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/Levenshtein/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/Levenshtein/_levenshtein.c
/usr/lib64/python3.6/site-packages/Levenshtein/_levenshtein.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/Levenshtein/_levenshtein.h
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.egg-info
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.egg-info/entry_points.txt
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.egg-info/namespace_packages.txt
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.egg-info/not-zip-safe
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.egg-info/requires.txt
/usr/lib64/python3.6/site-packages/python_Levenshtein-0.12.0-py3.6.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 Rocky Linux 8 using yum and dnf.