How To Install python2-bson on Rocky Linux 8
Introduction
In this tutorial we learn how to install python2-bson
on Rocky Linux 8.
What is python2-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.
We can use yum
or dnf
to install python2-bson
on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install python2-bson.
Install python2-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 python2-bson
using dnf
by running the following command:
sudo dnf -y install python2-bson
Install python2-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 python2-bson
using yum
by running the following command:
sudo yum -y install python2-bson
How To Uninstall python2-bson on Rocky Linux 8
To uninstall only the python2-bson
package we can use the following command:
sudo dnf remove python2-bson
python2-bson Package Contents on Rocky Linux 8
/usr/lib/.build-id
/usr/lib/.build-id/d3
/usr/lib/.build-id/d3/397e6208ca740ca6ad3362409d3d248bbd363f
/usr/lib64/python2.7/site-packages/bson
/usr/lib64/python2.7/site-packages/bson/__init__.py
/usr/lib64/python2.7/site-packages/bson/__init__.pyc
/usr/lib64/python2.7/site-packages/bson/__init__.pyo
/usr/lib64/python2.7/site-packages/bson/_cbson.so
/usr/lib64/python2.7/site-packages/bson/binary.py
/usr/lib64/python2.7/site-packages/bson/binary.pyc
/usr/lib64/python2.7/site-packages/bson/binary.pyo
/usr/lib64/python2.7/site-packages/bson/code.py
/usr/lib64/python2.7/site-packages/bson/code.pyc
/usr/lib64/python2.7/site-packages/bson/code.pyo
/usr/lib64/python2.7/site-packages/bson/codec_options.py
/usr/lib64/python2.7/site-packages/bson/codec_options.pyc
/usr/lib64/python2.7/site-packages/bson/codec_options.pyo
/usr/lib64/python2.7/site-packages/bson/dbref.py
/usr/lib64/python2.7/site-packages/bson/dbref.pyc
/usr/lib64/python2.7/site-packages/bson/dbref.pyo
/usr/lib64/python2.7/site-packages/bson/decimal128.py
/usr/lib64/python2.7/site-packages/bson/decimal128.pyc
/usr/lib64/python2.7/site-packages/bson/decimal128.pyo
/usr/lib64/python2.7/site-packages/bson/errors.py
/usr/lib64/python2.7/site-packages/bson/errors.pyc
/usr/lib64/python2.7/site-packages/bson/errors.pyo
/usr/lib64/python2.7/site-packages/bson/int64.py
/usr/lib64/python2.7/site-packages/bson/int64.pyc
/usr/lib64/python2.7/site-packages/bson/int64.pyo
/usr/lib64/python2.7/site-packages/bson/json_util.py
/usr/lib64/python2.7/site-packages/bson/json_util.pyc
/usr/lib64/python2.7/site-packages/bson/json_util.pyo
/usr/lib64/python2.7/site-packages/bson/max_key.py
/usr/lib64/python2.7/site-packages/bson/max_key.pyc
/usr/lib64/python2.7/site-packages/bson/max_key.pyo
/usr/lib64/python2.7/site-packages/bson/min_key.py
/usr/lib64/python2.7/site-packages/bson/min_key.pyc
/usr/lib64/python2.7/site-packages/bson/min_key.pyo
/usr/lib64/python2.7/site-packages/bson/objectid.py
/usr/lib64/python2.7/site-packages/bson/objectid.pyc
/usr/lib64/python2.7/site-packages/bson/objectid.pyo
/usr/lib64/python2.7/site-packages/bson/py3compat.py
/usr/lib64/python2.7/site-packages/bson/py3compat.pyc
/usr/lib64/python2.7/site-packages/bson/py3compat.pyo
/usr/lib64/python2.7/site-packages/bson/raw_bson.py
/usr/lib64/python2.7/site-packages/bson/raw_bson.pyc
/usr/lib64/python2.7/site-packages/bson/raw_bson.pyo
/usr/lib64/python2.7/site-packages/bson/regex.py
/usr/lib64/python2.7/site-packages/bson/regex.pyc
/usr/lib64/python2.7/site-packages/bson/regex.pyo
/usr/lib64/python2.7/site-packages/bson/son.py
/usr/lib64/python2.7/site-packages/bson/son.pyc
/usr/lib64/python2.7/site-packages/bson/son.pyo
/usr/lib64/python2.7/site-packages/bson/timestamp.py
/usr/lib64/python2.7/site-packages/bson/timestamp.pyc
/usr/lib64/python2.7/site-packages/bson/timestamp.pyo
/usr/lib64/python2.7/site-packages/bson/tz_util.py
/usr/lib64/python2.7/site-packages/bson/tz_util.pyc
/usr/lib64/python2.7/site-packages/bson/tz_util.pyo
/usr/share/doc/python2-bson
/usr/share/doc/python2-bson/README.rst
/usr/share/licenses/python2-bson
/usr/share/licenses/python2-bson/LICENSE
References
Summary
In this tutorial we learn how to install python2-bson
on Rocky Linux 8 using yum and dnf.