How To Install python3-bitarray on Fedora 36

In this tutorial we learn how to install python3-bitarray in Fedora 36. python3-bitarray is Efficient Array of Booleans –C Extensions

Introduction

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

What is python3-bitarray

Bitarrays are sequence types and behave very much like usual lists. Eight bits are represented by one byte in contiguous block of memory. The user can select between two representations; little-endian and big-endian. Most of the functionality is implemented in C.Methods for accessing the machine representation are provided. This can be useful when bit level access to binary files is required, such as portable bitmap image files (.pbm). Also, when dealing with compressed data which uses variable bit length encoding you may find this module useful. This is Python 3 version.

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

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

sudo dnf -y install python3-bitarray

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

sudo yum -y install python3-bitarray

How To Uninstall python3-bitarray on Fedora 36

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

sudo dnf remove python3-bitarray

python3-bitarray Package Contents on Fedora 36

/usr/lib/.build-id
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/1c924984ade35ab940f29bdb10bb4b8df7e26e
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/ce81c57c54417ea29400f4345750d056e635b8
/usr/lib64/python3.10/site-packages/bitarray
/usr/lib64/python3.10/site-packages/bitarray-1.6.3-py3.10.egg-info
/usr/lib64/python3.10/site-packages/bitarray/__init__.py
/usr/lib64/python3.10/site-packages/bitarray/__pycache__
/usr/lib64/python3.10/site-packages/bitarray/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/bitarray/__pycache__/__init__.cpython-310.pyc
/usr/lib64/python3.10/site-packages/bitarray/__pycache__/test_bitarray.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/bitarray/__pycache__/test_bitarray.cpython-310.pyc
/usr/lib64/python3.10/site-packages/bitarray/__pycache__/test_util.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/bitarray/__pycache__/test_util.cpython-310.pyc
/usr/lib64/python3.10/site-packages/bitarray/__pycache__/util.cpython-310.opt-1.pyc
/usr/lib64/python3.10/site-packages/bitarray/__pycache__/util.cpython-310.pyc
/usr/lib64/python3.10/site-packages/bitarray/_bitarray.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/bitarray/_util.cpython-310-x86_64-linux-gnu.so
/usr/lib64/python3.10/site-packages/bitarray/bitarray.h
/usr/lib64/python3.10/site-packages/bitarray/pythoncapi_compat.h
/usr/lib64/python3.10/site-packages/bitarray/test_bitarray.py
/usr/lib64/python3.10/site-packages/bitarray/test_util.py
/usr/lib64/python3.10/site-packages/bitarray/util.py

References

Summary

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