#### Beyond Linux® From Scratch (systemd Edition) - Version 11.1

### Chapter 9. General Libraries

- Prev

  libblockdev-2.26

- Next

  libdaemon-0.14

- Up
- Home

# libbytesize-2.6

## 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.1 platform.

### Package Information

- Download (HTTP): https://github.com/storaged-project/libbytesize/releases/download/2.6/libbytesize-2.6.tar.gz

- Download MD5 sum: 2c1d253452fd6610b5857add0195698f

- Download size: 436 KB

- Estimated disk space required: 3.4 MB

- Estimated build time: less than 0.1 SBU (including tests)

### libbytesize Dependencies

#### Required

pcre2-10.39 and Pygments-2.11.2

#### Optional

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: https://wiki.linuxfromscratch.org/blfs/wiki/libbytesize

## Installation of libbytesize

Install libbytesize by running the following commands:

    ./configure --prefix=/usr &&
    make

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

Now, as the `root` user:

    make install

## Contents

Installed Programs: bscalc
Installed Library: libbytesize.so
Installed Directories: /usr/include/bytesize, /usr/share/gtk-doc/html/libbytesize, and /usr/lib/python3.10/site-packages/bytesize

### Short Descriptions

bscalc | converts from a larger unit, such as MB or TB, back to a value in bytes
`libbytesize.so` | contains functions used to handle common read/write operations with sizes in bytes

Last updated on

- Prev

  libblockdev-2.26

- Next

  libdaemon-0.14

- Up
- Home