How To Install python3-snappy on Rocky Linux 8

In this tutorial we learn how to install python3-snappy on Rocky Linux 8. python3-snappy is Python library for the snappy compression library from Google

Introduction

In this tutorial we learn how to install python3-snappy on Rocky Linux 8.

What is python3-snappy

Python bindings for the snappy compression library from Google.

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

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

sudo dnf -y install python3-snappy

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

sudo yum -y install python3-snappy

How To Uninstall python3-snappy on Rocky Linux 8

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

sudo dnf remove python3-snappy

python3-snappy Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/2d214b3eec9cb2139902bdae7c4a539a841400
/usr/lib64/python3.6/site-packages/python_snappy-0.5.4-py3.6.egg-info
/usr/lib64/python3.6/site-packages/python_snappy-0.5.4-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/python_snappy-0.5.4-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/python_snappy-0.5.4-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/python_snappy-0.5.4-py3.6.egg-info/pbr.json
/usr/lib64/python3.6/site-packages/python_snappy-0.5.4-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/snappy
/usr/lib64/python3.6/site-packages/snappy/__init__.py
/usr/lib64/python3.6/site-packages/snappy/__main__.py
/usr/lib64/python3.6/site-packages/snappy/__pycache__
/usr/lib64/python3.6/site-packages/snappy/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/__main__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/__main__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/hadoop_snappy.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/hadoop_snappy.cpython-36.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/snappy.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/snappy.cpython-36.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/snappy_cffi.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/snappy_cffi.cpython-36.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/snappy_cffi_builder.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/snappy_cffi_builder.cpython-36.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/snappy_formats.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/snappy/__pycache__/snappy_formats.cpython-36.pyc
/usr/lib64/python3.6/site-packages/snappy/_snappy.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/snappy/hadoop_snappy.py
/usr/lib64/python3.6/site-packages/snappy/snappy.py
/usr/lib64/python3.6/site-packages/snappy/snappy_cffi.py
/usr/lib64/python3.6/site-packages/snappy/snappy_cffi_builder.py
/usr/lib64/python3.6/site-packages/snappy/snappy_formats.py
/usr/share/doc/python3-snappy
/usr/share/doc/python3-snappy/AUTHORS
/usr/share/doc/python3-snappy/README.rst
/usr/share/licenses/python3-snappy
/usr/share/licenses/python3-snappy/LICENSE

References

Summary

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