# Install libstatgrab with Homebrew, apk, dnf, Nix, pacman, apt, zypper

Provides cross-platform access to statistics about the system. Version 0.92.1 via Homebrew; verified from local package data. Also installable with debian: sudo apt install libstatgrab-dev.

## Install

```sh
sudo av install brew:libstatgrab
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install libstatgrab
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add libstatgrab
```

  Evidence: Alpine Linux edge package indexes: libstatgrab from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- dnf (92%):

```sh
sudo dnf install libstatgrab
```

  Evidence: Fedora Rawhide package metadata: libstatgrab from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libstatgrab
```

  Evidence: nixpkgs package indexes: pkgs/by-name/li/libstatgrab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S libstatgrab
```

  Evidence: Arch Linux sync databases: libstatgrab from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install libstatgrab-dev
```

  Evidence: Debian stable package indexes: libstatgrab-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libstatgrab-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libstatgrab-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Package facts

- **Package key:** brew:libstatgrab
- **Package manager:** Homebrew
- **Version:** 0.92.1
- **Source summary:** Provides cross-platform access to statistics about the system
- **Homepage:** <https://libstatgrab.org/>
- **Repository:** <https://github.com/libstatgrab/libstatgrab>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- saidar (alias)
- statgrab (alias)
- statgrab-make-mrtg-config (alias)
- statgrab-make-mrtg-index (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.92.1
## Project history and usage

libstatgrab is a C library and tool set for cross-platform system statistics. It provides a portable interface for CPU, memory, disk, process, network, and I/O counters, with companion tools such as saidar and statgrab.

### Project history

The libstatgrab site describes the project as a cross-platform library for accessing system statistics and documents the included saidar and statgrab tools. GitHub release metadata preserves early release names back to libstatgrab 0.1 on February 19, 2003.

### Adoption history

The project has been packaged by Unix-like distributions because system-stat APIs vary by operating system. The official site lists tested support across FreeBSD, Linux, NetBSD, OpenBSD, Solaris, DragonFly BSD, HP-UX, and AIX.

### How it is used

Developers use the C API when they want portable system counters, while script authors and operators can use statgrab's sysctl-style output or saidar's curses display. The package also includes MRTG configuration helpers.

### Why package nerds care

libstatgrab is a modest but useful portability layer: the package is less famous than modern observability stacks, but it represents the classic Unix packaging problem of normalizing non-standard kernel statistics across many systems.

### Timeline

- 2003-02-19: Release metadata records libstatgrab 0.1.
- 2003-08-25: Release metadata records libstatgrab 0.5.
- 2021-07-27: The project site records libstatgrab 0.92.1 with API and ABI compatibility with 0.92.

### Related projects

- saidar and statgrab are bundled command-line tools.
- MRTG is referenced by the project as an output target for generated monitoring configuration.
- pystatgrab and other language bindings expose the same system-stat library to non-C callers.

### Sources

- <https://api.github.com/repos/libstatgrab/libstatgrab/releases?per_page=100>
- <https://github.com/libstatgrab/libstatgrab>
- <https://libstatgrab.org/>
- <https://libstatgrab.org/docs/statgrab.3.html>


## Security Notes

library-like package without higher-risk signals.

- **Geiger risk:** green / low
- library-like package without higher-risk signals

## Other Package-Manager Records

- Debian apt - libstatgrab-dev - 0.92.1-1.2: normalized package name match | Debian stable package indexes: libstatgrab-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | development files of library for system statistics | https://libstatgrab.org
- Debian apt - libstatgrab10t64 - 0.92.1-1.2: normalized package name match | Debian stable package indexes: libstatgrab10t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library being useful interface to system statistics | https://libstatgrab.org
- Debian apt - saidar - 0.92.1-1.2: normalized package name match | Debian stable package indexes: saidar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | curses-based program which displays live system statistics | https://libstatgrab.org
- Debian apt - statgrab - 0.92.1-1.2: normalized package name match | Debian stable package indexes: statgrab from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | sysctl-style access to system statistics | https://libstatgrab.org
- Nix - libstatgrab: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libstatgrab/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libstatgrab-dev - 0.92.1-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libstatgrab-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | development files of library for system statistics | https://libstatgrab.org
- Ubuntu apt - libstatgrab10t64 - 0.92.1-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: libstatgrab10t64 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library being useful interface to system statistics | https://libstatgrab.org
- Ubuntu apt - saidar - 0.92.1-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: saidar from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | curses-based program which displays live system statistics | https://libstatgrab.org
- Ubuntu apt - statgrab - 0.92.1-1.2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: statgrab from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | sysctl-style access to system statistics | https://libstatgrab.org
- apk - libstatgrab - 0.92.1-r1: normalized package name match | Alpine Linux edge package indexes: libstatgrab from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cross platform library for accessing system statistics | https://libstatgrab.org/
- apk - libstatgrab-dev - 0.92.1-r1: normalized package name match | Alpine Linux edge package indexes: libstatgrab-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cross platform library for accessing system statistics (development files) | https://libstatgrab.org/
- apk - libstatgrab-doc - 0.92.1-r1: normalized package name match | Alpine Linux edge package indexes: libstatgrab-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Cross platform library for accessing system statistics (documentation) | https://libstatgrab.org/
- dnf - libstatgrab - 0.92.1-17.fc45: normalized package name match | Fedora Rawhide package metadata: libstatgrab from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A library that provides cross platform access to statistics of the system | https://github.com/libstatgrab/libstatgrab
- dnf - libstatgrab-devel - 0.92.1-17.fc45: normalized package name match | Fedora Rawhide package metadata: libstatgrab-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for libstatgrab | https://github.com/libstatgrab/libstatgrab
- dnf - libstatgrab-examples - 0.92.1-17.fc45: normalized package name match | Fedora Rawhide package metadata: libstatgrab-examples from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | The example files from libstatgrab | https://github.com/libstatgrab/libstatgrab
- dnf - saidar - 0.92.1-17.fc45: normalized package name match | Fedora Rawhide package metadata: saidar from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | System information real-time monitor | https://github.com/libstatgrab/libstatgrab


## Combined YAML source

View the package source record on GitHub. [combined/libstatgrab.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libstatgrab.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
