How To Install python3-bitmath on Fedora 36

In this tutorial we learn how to install python3-bitmath in Fedora 36. python3-bitmath is Aids representing and manipulating file sizes in various prefix notations

Introduction

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

What is python3-bitmath

bitmath simplifies many facets of interacting with file sizes in various units. Examples include units (GiB to kB), converting between units of the same type (SI to SI, or NIST to NIST), basic arithmetic operations (subtracting 42KiB from 50GiB), and rich comparison operations (1024 Bytes == 1KiB), bitwise operations, sorting, automatic best human-readable prefix selection, and completely customizable formatting. In addition to the conversion and math operations, bitmath provides human readable representations of values which are suitable for use in interactive shells as well as larger scripts and applications. It can also read the capacity of system storage devices. bitmath can parse strings (like “1 KiB”) into proper objects and has support for integration with the argparse module as a custom argument type and the progressbar module as a custom file transfer speed widget. bitmath is thoroughly unittested, with almost 200 individual tests (a number which is always increasing). bitmath’s test-coverage is almost always at 100%.

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

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

sudo dnf -y install python3-bitmath

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

sudo yum -y install python3-bitmath

How To Uninstall python3-bitmath on Fedora 36

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

sudo dnf remove python3-bitmath

python3-bitmath Package Contents on Fedora 36

/usr/bin/bitmath
/usr/lib/python3.10/site-packages/bitmath
/usr/lib/python3.10/site-packages/bitmath-1.3.1.1-py3.10.egg-info
/usr/lib/python3.10/site-packages/bitmath-1.3.1.1-py3.10.egg-info/PKG-INFO
/usr/lib/python3.10/site-packages/bitmath-1.3.1.1-py3.10.egg-info/SOURCES.txt
/usr/lib/python3.10/site-packages/bitmath-1.3.1.1-py3.10.egg-info/dependency_links.txt
/usr/lib/python3.10/site-packages/bitmath-1.3.1.1-py3.10.egg-info/entry_points.txt
/usr/lib/python3.10/site-packages/bitmath-1.3.1.1-py3.10.egg-info/top_level.txt
/usr/lib/python3.10/site-packages/bitmath/__init__.py
/usr/lib/python3.10/site-packages/bitmath/__pycache__
/usr/lib/python3.10/site-packages/bitmath/__pycache__/__init__.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/bitmath/__pycache__/__init__.cpython-310.pyc
/usr/lib/python3.10/site-packages/bitmath/__pycache__/integrations.cpython-310.opt-1.pyc
/usr/lib/python3.10/site-packages/bitmath/__pycache__/integrations.cpython-310.pyc
/usr/lib/python3.10/site-packages/bitmath/integrations.py
/usr/share/doc/python-bitmath/docs
/usr/share/doc/python-bitmath/docs/appendices
/usr/share/doc/python-bitmath/docs/appendices.rst
/usr/share/doc/python-bitmath/docs/appendices/mixed_math.rst
/usr/share/doc/python-bitmath/docs/appendices/on_units.rst
/usr/share/doc/python-bitmath/docs/appendices/related_projects.rst
/usr/share/doc/python-bitmath/docs/appendices/who_uses.rst
/usr/share/doc/python-bitmath/docs/classes.rst
/usr/share/doc/python-bitmath/docs/commandline.rst
/usr/share/doc/python-bitmath/docs/conf.py
/usr/share/doc/python-bitmath/docs/conf.py.in
/usr/share/doc/python-bitmath/docs/contact.rst
/usr/share/doc/python-bitmath/docs/contributing.rst
/usr/share/doc/python-bitmath/docs/copyright.rst
/usr/share/doc/python-bitmath/docs/example_block_devices.rst
/usr/share/doc/python-bitmath/docs/index.rst
/usr/share/doc/python-bitmath/docs/index.rst.in
/usr/share/doc/python-bitmath/docs/instances.rst
/usr/share/doc/python-bitmath/docs/module.rst
/usr/share/doc/python-bitmath/docs/query_device_capacity_warning.rst
/usr/share/doc/python-bitmath/docs/real_life_examples.rst
/usr/share/doc/python-bitmath/docs/simple_examples.rst
/usr/share/doc/python3-bitmath
/usr/share/doc/python3-bitmath/LICENSE
/usr/share/doc/python3-bitmath/NEWS.rst
/usr/share/doc/python3-bitmath/README.rst
/usr/share/man/man1/bitmath.1.gz

References

Summary

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