How To Install python3-bson on Rocky Linux 8

In this tutorial we learn how to install python3-bson on Rocky Linux 8. python3-bson is Python bson library

Introduction

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

What is python3-bson

BSON is a binary-encoded serialization of JSON-like documents. BSON is designed to be lightweight, traversable, and efficient. BSON, like JSON, supports the embedding of objects and arrays within other objects and arrays. This package contains the python3 version of this module.

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

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

sudo dnf -y install python3-bson

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

sudo yum -y install python3-bson

How To Uninstall python3-bson on Rocky Linux 8

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

sudo dnf remove python3-bson

python3-bson Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/72
/usr/lib/.build-id/72/765d233fecae55e0d917c842c3edab2c9d9422
/usr/lib64/python3.6/site-packages/bson
/usr/lib64/python3.6/site-packages/bson/__init__.py
/usr/lib64/python3.6/site-packages/bson/__pycache__
/usr/lib64/python3.6/site-packages/bson/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/binary.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/binary.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/code.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/code.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/codec_options.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/codec_options.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/dbref.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/dbref.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/decimal128.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/decimal128.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/errors.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/errors.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/int64.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/int64.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/json_util.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/json_util.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/max_key.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/max_key.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/min_key.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/min_key.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/objectid.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/objectid.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/py3compat.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/py3compat.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/raw_bson.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/raw_bson.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/regex.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/regex.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/son.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/son.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/timestamp.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/timestamp.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/tz_util.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/tz_util.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/_cbson.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/bson/binary.py
/usr/lib64/python3.6/site-packages/bson/code.py
/usr/lib64/python3.6/site-packages/bson/codec_options.py
/usr/lib64/python3.6/site-packages/bson/dbref.py
/usr/lib64/python3.6/site-packages/bson/decimal128.py
/usr/lib64/python3.6/site-packages/bson/errors.py
/usr/lib64/python3.6/site-packages/bson/int64.py
/usr/lib64/python3.6/site-packages/bson/json_util.py
/usr/lib64/python3.6/site-packages/bson/max_key.py
/usr/lib64/python3.6/site-packages/bson/min_key.py
/usr/lib64/python3.6/site-packages/bson/objectid.py
/usr/lib64/python3.6/site-packages/bson/py3compat.py
/usr/lib64/python3.6/site-packages/bson/raw_bson.py
/usr/lib64/python3.6/site-packages/bson/regex.py
/usr/lib64/python3.6/site-packages/bson/son.py
/usr/lib64/python3.6/site-packages/bson/timestamp.py
/usr/lib64/python3.6/site-packages/bson/tz_util.py
/usr/share/doc/python3-bson
/usr/share/doc/python3-bson/README.rst
/usr/share/licenses/python3-bson
/usr/share/licenses/python3-bson/LICENSE
/usr/lib/.build-id
/usr/lib/.build-id/78
/usr/lib/.build-id/78/969b54b40fea49da562e2b6d12374446ec586b
/usr/lib64/python3.6/site-packages/bson
/usr/lib64/python3.6/site-packages/bson/__init__.py
/usr/lib64/python3.6/site-packages/bson/__pycache__
/usr/lib64/python3.6/site-packages/bson/__pycache__/__init__.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/__init__.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/binary.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/binary.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/code.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/code.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/codec_options.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/codec_options.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/dbref.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/dbref.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/decimal128.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/decimal128.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/errors.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/errors.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/int64.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/int64.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/json_util.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/json_util.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/max_key.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/max_key.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/min_key.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/min_key.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/objectid.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/objectid.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/py3compat.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/py3compat.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/raw_bson.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/raw_bson.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/regex.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/regex.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/son.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/son.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/timestamp.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/timestamp.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/tz_util.cpython-36.opt-1.pyc
/usr/lib64/python3.6/site-packages/bson/__pycache__/tz_util.cpython-36.pyc
/usr/lib64/python3.6/site-packages/bson/_cbson.cpython-36m-x86_64-linux-gnu.so
/usr/lib64/python3.6/site-packages/bson/binary.py
/usr/lib64/python3.6/site-packages/bson/code.py
/usr/lib64/python3.6/site-packages/bson/codec_options.py
/usr/lib64/python3.6/site-packages/bson/dbref.py
/usr/lib64/python3.6/site-packages/bson/decimal128.py
/usr/lib64/python3.6/site-packages/bson/errors.py
/usr/lib64/python3.6/site-packages/bson/int64.py
/usr/lib64/python3.6/site-packages/bson/json_util.py
/usr/lib64/python3.6/site-packages/bson/max_key.py
/usr/lib64/python3.6/site-packages/bson/min_key.py
/usr/lib64/python3.6/site-packages/bson/objectid.py
/usr/lib64/python3.6/site-packages/bson/py3compat.py
/usr/lib64/python3.6/site-packages/bson/raw_bson.py
/usr/lib64/python3.6/site-packages/bson/regex.py
/usr/lib64/python3.6/site-packages/bson/son.py
/usr/lib64/python3.6/site-packages/bson/timestamp.py
/usr/lib64/python3.6/site-packages/bson/tz_util.py
/usr/share/doc/python3-bson
/usr/share/doc/python3-bson/README.rst
/usr/share/licenses/python3-bson
/usr/share/licenses/python3-bson/LICENSE

References

Summary

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