How To Install python3-ujson on Rocky Linux 8

In this tutorial we learn how to install python3-ujson on Rocky Linux 8. python3-ujson is An ultra fast JSON encoder and decoder written in pure C

Introduction

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

What is python3-ujson

UltraJSON is an ultra fast JSON encoder and decoder written in pure C with bindings for Python. Python 3 version.

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

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

sudo dnf -y install python3-ujson

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

sudo yum -y install python3-ujson

How To Uninstall python3-ujson on Rocky Linux 8

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

sudo dnf remove python3-ujson

python3-ujson Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/48
/usr/lib/.build-id/48/c2cbd8f1ee2e872233ec8a28ccb1b523efa299
/usr/lib64/python3.6/site-packages/ujson-2.0-py3.6.egg-info
/usr/lib64/python3.6/site-packages/ujson-2.0-py3.6.egg-info/PKG-INFO
/usr/lib64/python3.6/site-packages/ujson-2.0-py3.6.egg-info/SOURCES.txt
/usr/lib64/python3.6/site-packages/ujson-2.0-py3.6.egg-info/dependency_links.txt
/usr/lib64/python3.6/site-packages/ujson-2.0-py3.6.egg-info/top_level.txt
/usr/lib64/python3.6/site-packages/ujson.cpython-36m-x86_64-linux-gnu.so
/usr/share/doc/python3-ujson
/usr/share/doc/python3-ujson/README.rst
/usr/share/licenses/python3-ujson
/usr/share/licenses/python3-ujson/LICENSE.txt

References

Summary

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