Introduction to libbytesize

The libbytesize package is a library which facilitates the common operations with sizes in bytes.

This package is known to build and work properly using an LFS-11.2 platform.

Package Information

libbytesize Dependencies


pcre2-10.40 and Pygments-2.13.0


GTK-Doc-1.33.2, six-1.16.0 (needed for tests and python bindings), pocketlint (python module for one test), and polib (python module for one test)

User Notes:

Installation of libbytesize

Install libbytesize by running the following commands:

./configure --prefix=/usr &&

If you have the optional python modules installed, the regression tests can be run with: make check.

Now, as the root user:

make install


Installed Programs: bscalc
Installed Library:
Installed Directories: /usr/include/bytesize and /usr/lib/python3.10/site-packages/bytesize

Short Descriptions


converts from a larger unit, such as MB or TB, back to a value in bytes

contains functions used to handle common read/write operations with sizes in bytes