# 使用 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-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/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## 软件包事实

- **软件包键:** brew:bcal
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bcal>
- **版本:** 2.5
- **来源摘要:** Storage conversion and expression calculator
- **主页:** <https://github.com/jarun/bcal>
- **仓库:** <https://github.com/jarun/bcal>
- **上游文档:** <https://github.com/jarun/bcal#readme>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/jarun/bcal/archive/refs/tags/v2.5.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- bcal (cli)
- bcal (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 2.5
- 本地数据: OK
- 上游仓库: https://github.com/jarun/bcal
- 检测到的最新版本: v2.5 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

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

## 源数据库详情

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

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

- 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


## 相关链接

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


## 来源

- 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
