How To Install python3-bitstring on Fedora 36

In this tutorial we learn how to install python3-bitstring in Fedora 36. python3-bitstring is Simple construction, analysis and modification of binary data

Introduction

In this tutorial we learn how to install python3-bitstring on Fedora 36.

What is python3-bitstring

bitstring is a pure Python module designed to help make the creation and analysis of binary data as simple and natural as possible. Bitstrings can be constructed from integers (big and little endian), hex, octal, binary, strings or files. They can be sliced, joined, reversed, inserted into, overwritten, etc. with simple functions or slice notation. They can also be read from, searched and replaced, and navigated in, similar to a file or stream.

We can use yum or dnf to install python3-bitstring on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install python3-bitstring.

Install python3-bitstring on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install python3-bitstring using dnf by running the following command:

sudo dnf -y install python3-bitstring

Install python3-bitstring on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install python3-bitstring using yum by running the following command:

sudo yum -y install python3-bitstring

How To Uninstall python3-bitstring on Fedora 36

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

sudo dnf remove python3-bitstring

python3-bitstring Package Contents on Fedora 36

/usr/lib/python3.10/site-packages/__pycache__/bitstring.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/__pycache__/bitstring.cpython-310.pyc
/usr/lib/python3.10/site-packages/bitstring-3.1.7-py3.10.egg-info
/usr/lib/python3.10/site-packages/bitstring.py
/usr/share/doc/python3-bitstring
/usr/share/doc/python3-bitstring/README.rst
/usr/share/doc/python3-bitstring/release_notes.txt
/usr/share/licenses/python3-bitstring
/usr/share/licenses/python3-bitstring/LICENSE

References

Summary

In this tutorial we learn how to install python3-bitstring on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).