# 使用 Homebrew, apt, dnf, Nix, zypper 安装 bcal

查看 bcal 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bcal
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install bcal
```

  证据: 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
```

  证据: Fedora Rawhide package metadata: bcal 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#bcal
```

  证据: 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
```

  证据: openSUSE Tumbleweed package metadata: bcal from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:bcal
- **软件包管理器:** Homebrew
- **版本:** 2.5
- **来源摘要:** Storage conversion and expression calculator
- **主页:** <https://github.com/jarun/bcal>
- **仓库:** <https://github.com/jarun/bcal>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- bcal (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.5
## 项目历史与用法

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

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

### 为什么软件包爱好者会关心

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.

### 时间线

- 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.

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- 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-2.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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Storage conversion and expression calculator | https://github.com/jarun/bcal
- zypper - bcal - 2.4-2.5: normalized package name match | openSUSE Tumbleweed package metadata: bcal from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Command-line utility for storage conversions and calculations | http://www.github.com/jarun/bcal


## Combined YAML source

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


## 来源

- 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
