# Install bcal with Homebrew, apt, dnf, Nix, zypper

Storage conversion and expression calculator. Version 2.5 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:bcal
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install bcal
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install bcal
```

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

- dnf (92%):

```sh
sudo dnf install bcal
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#bcal
```

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

- zypper (92%):

```sh
sudo zypper install bcal
```

  Evidence: openSUSE Tumbleweed package metadata: bcal from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:bcal
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/bcal>
- **Version:** 2.5
- **Source summary:** Storage conversion and expression calculator
- **Homepage:** <https://github.com/jarun/bcal>
- **Repository:** <https://github.com/jarun/bcal>
- **Upstream docs:** <https://github.com/jarun/bcal#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/jarun/bcal/archive/refs/tags/v2.5.tar.gz>
- **Generated:** 2026-07-09T07:20:21+00:00

## Executables

- bcal (cli)
- bcal (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-09
- Package-manager version: 2.5
- Local data: ok
- Upstream repository: https://github.com/jarun/bcal
- Upstream latest detected: v2.5 (current)
- info: No package-manager update timestamp was available.
## Project history and usage

bcal is a small C command-line calculator aimed at people who think in bytes, sectors, addresses, and binary prefixes.

### Project history

The upstream GitHub repository was created in 2016. Its README describes bcal, the Byte CALculator, as a REPL and single-shot CLI for storage expressions, SI/IEC conversion, byte address calculation, base conversion, and CHS/LBA calculations.

The project keeps dependencies modest: standard libc plus GNU Readline or BSD Editline, with a no-readline build option that uses its own prompt and history-file support.

### Adoption history

bcal is packaged beyond Homebrew, including Debian, Fedora, Nix, Ubuntu, and openSUSE-family package sets in the supplied package-manager facts. Its README points users to package-manager installation first and shows Repology packaging status.

### How it is used

Users run bcal as an interactive storage calculator, pass quoted expressions for one-shot evaluation, convert between decimal, hexadecimal, binary, SI, and IEC units, or calculate disk CHS/LBA values.

When built without Readline, its history file is stored under $XDG_CONFIG_HOME/bcal/history or $HOME/.config/bcal/history.

### Why package nerds care

bcal is the kind of niche CLI package that saves repeated mental arithmetic for storage engineers, filesystem debuggers, firmware people, and anyone reading sector offsets in hex.

Its significance is not ecosystem scale but fit: it packages a cluster of byte-addressing calculations that general calculators rarely make pleasant.

### Timeline

- 2016: GitHub repository created.
- 2018: README-linked asciinema demo published.
- 2020s: Packaged in Homebrew and several Linux distributions.

### Related projects

- bc and dc cover general arbitrary-precision calculation but not bcal's storage-unit and disk-addressing workflow.
- disk utilities, hex calculators, and filesystem debugging tools overlap with bcal's audience.

### Sources

- <https://github.com/jarun/bcal>
- <https://github.com/jarun/bcal#readme>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bcal
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Debian apt - bcal - 2.4-2+b1: normalized package name match | Debian stable package indexes: bcal from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Command-line utility for storage conversions and calculations | https://github.com/jarun/bcal
- Nix - bcal: normalized package name match | nixpkgs package indexes: pkgs/by-name/bc/bcal/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bcal - 2.4-2: normalized package name match | Ubuntu 24.04 LTS package indexes: bcal from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Command-line utility for storage conversions and calculations | https://github.com/jarun/bcal
- dnf - bcal - 2.5-1.fc45: normalized package name match | Fedora Rawhide package metadata: bcal from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Storage conversion and expression calculator | https://github.com/jarun/bcal
- zypper - bcal - 2.4-2.3: normalized package name match | openSUSE Tumbleweed package metadata: bcal from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Command-line utility for storage conversions and calculations | http://www.github.com/jarun/bcal


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [bsdconv](https://www.automicvault.com/pkg/brew/bsdconv/) - Shares av.db curated category or tags: cli, conversion, developer-tools.
- [dmg2img](https://www.automicvault.com/pkg/brew/dmg2img/) - Shares av.db curated category or tags: cli, conversion, developer-tools.
- [dvisvgm](https://www.automicvault.com/pkg/brew/dvisvgm/) - Shares av.db curated category or tags: cli, conversion, developer-tools.
- [eva](https://www.automicvault.com/pkg/brew/eva/) - Shares av.db curated category or tags: calculator, cli, developer-tools.
- [git-xet](https://www.automicvault.com/pkg/brew/git-xet/) - Shares av.db curated category or tags: cli, developer-tools, storage.
- [kubectl-rook-ceph](https://www.automicvault.com/pkg/brew/kubectl-rook-ceph/) - Shares av.db curated category or tags: cli, developer-tools, storage.
- [pcalc](https://www.automicvault.com/pkg/brew/pcalc/) - Shares av.db curated category or tags: calculator, cli, developer-tools.
- [simg2img](https://www.automicvault.com/pkg/brew/simg2img/) - Shares av.db curated category or tags: cli, conversion, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/bcal.yml](https://github.com/automic-vault/db/blob/main/combined/bcal.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
