# 使用 Homebrew, apk, apt, MacPorts, Nix, pacman, scoop, zypper 安装 numbat

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

## 安装

```sh
sudo av install brew:numbat
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install numbat
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install numbat
```

  证据: MacPorts ports tree: math/numbat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add numbat
```

  证据: Alpine Linux edge package indexes: numbat from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install numbat
```

  证据: Debian stable package indexes: numbat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#numbat
```

  证据: nixpkgs package indexes: pkgs/by-name/nu/numbat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S numbat
```

  证据: Arch Linux sync databases: numbat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install numbat
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/numbat
```

  证据: Scoop official bucket manifest trees: bucket/numbat.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:numbat
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/numbat>
- **版本:** 1.23.0
- **来源摘要:** Statically typed programming language for scientific computations
- **主页:** <https://numbat.dev/>
- **仓库:** <https://github.com/sharkdp/numbat>
- **上游文档:** <https://numbat.dev/doc>
- **许可证:** Apache-2.0 OR MIT
- **源码归档:** <https://github.com/sharkdp/numbat/archive/refs/tags/v1.23.0.tar.gz>
- **最后更新:** 2026-06-14T14:47:58+02:00
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- numbat (cli)
- numbat (别名)

## 构建依赖

- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.23.0
- 管理器更新时间: 2026-06-14
- 本地数据: OK
- 上游仓库: https://github.com/sharkdp/numbat
- 检测到的最新版本: v1.23.0 (当前)
## 项目历史与用法

Numbat is David Peter's Rust-based, statically typed language and calculator for scientific computations with first-class physical units. Its public positioning is deliberately narrower than a general computer algebra system: the project emphasizes unit-aware calculations, physical dimensions as types, a large unit/constant standard library, and an interactive terminal workflow.

### 项目历史

The public release trail visible through GitHub releases starts with v1.6.0 on September 20, 2023, and the author's 2023 'Introducing Numbat' article explains the central design idea: values such as months, years, lengths, speeds, and other quantities carry physical dimensions that the type checker can enforce. The repository is maintained by David Peter and licensed under Apache-2.0 OR MIT.

### 采用历史

Numbat is a niche but visible developer/science CLI rather than an infrastructure dependency. The GitHub project page showed about 2.6k stars and 104 forks during this research, and Homebrew's formula page listed 1,467 installs over 365 days on July 1, 2026. Its availability through Homebrew, crates.io, Linux distributions, Scoop, Nix, MacPorts, and other package managers gives it unusually broad packaging coverage for a specialized calculator language.

### 使用方式

Package nerds use Numbat when a unit conversion is too semantic for bc, Python, or a normal calculator: examples from the README include converting speeds, angles, mixed imperial lengths, and time durations; defining ad-hoc units; and relying on the standard library for physical constants and functions. The `NUMBAT_MODULES_PATH` escape hatch and `init.nbt` customization matter because the unit system itself is written in Numbat and can be extended without changing the binary.

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

The interesting packaging angle is that Numbat behaves like a calculator, a REPL, and a small domain language at once. It is the sort of package people install directly as a command-line tool, not as a transitive dependency, and its prelude/modules packaging is part of the user experience because users may inspect or override unit definitions.

### 时间线

- 2023: David Peter publishes the Numbat type-system introduction.
- 2023-09-20: GitHub release v1.6.0 appears in the public release API.
- 2026-02-08: GitHub release v1.23.0 is published.

### Related projects

- sharkdp/insect
- Qalculate!
- WolframAlpha

### 来源

- <https://api.github.com/repos/sharkdp/numbat/releases?per_page=100>
- <https://crates.io/crates/numbat>
- <https://formulae.brew.sh/formula/numbat>
- <https://github.com/sharkdp/numbat>
- <https://numbat.dev/articles/intro.html>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

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

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

- Debian apt - numbat - 1.11.0-3+b1: normalized package name match | Debian stable package indexes: numbat from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | CLI for numbat, a programming language for scientific computations | https://numbat.dev/
- Nix - numbat: normalized package name match | nixpkgs package indexes: pkgs/by-name/nu/numbat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - numbat - 1.16.0-r0: normalized package name match | Alpine Linux edge package indexes: numbat from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Statically typed programming language for scientific computations | https://numbat.dev/
- apk - numbat-doc - 1.16.0-r0: normalized package name match | Alpine Linux edge package indexes: numbat-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Statically typed programming language for scientific computations (documentation) | https://numbat.dev/
- pacman - numbat - 1.23.0-2: normalized package name match | Arch Linux sync databases: numbat from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A statically typed programming language for scientific computations with first class support for physical dimensions and units | https://github.com/sharkdp/numbat
- zypper - numbat - 1.14.0-1.5: normalized package name match | openSUSE Tumbleweed package metadata: numbat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Statically typed programming language for scientific computations | https://github.com/sharkdp/numbat
- MacPorts - numbat: normalized package name match | MacPorts ports tree: math/numbat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/numbat: normalized package name match | Scoop official bucket manifest trees: bucket/numbat.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/zh-hans/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [rust](https://www.automicvault.com/zh-hans/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [libqalculate](https://www.automicvault.com/zh-hans/pkg/brew/libqalculate/) - Shares av.db curated category or tags: calculator, cli, science, units.
- [octave](https://www.automicvault.com/zh-hans/pkg/brew/octave/) - Shares av.db curated category or tags: cli, programming-language, science, scientific-computing.
- [calc](https://www.automicvault.com/zh-hans/pkg/brew/calc/) - Shares av.db curated category or tags: calculator, cli, science.
- [calceph](https://www.automicvault.com/zh-hans/pkg/brew/calceph/) - Shares av.db curated category or tags: cli, science, scientific-computing.
- [gnu-units](https://www.automicvault.com/zh-hans/pkg/brew/gnu-units/) - Shares av.db curated category or tags: calculator, cli, science.
- [gnuplot](https://www.automicvault.com/zh-hans/pkg/brew/gnuplot/) - Shares av.db curated category or tags: cli, science, scientific-computing.
- [gsl](https://www.automicvault.com/zh-hans/pkg/brew/gsl/) - Shares av.db curated category or tags: cli, science, scientific-computing.
- [healpix](https://www.automicvault.com/zh-hans/pkg/brew/healpix/) - Shares av.db curated category or tags: cli, science, scientific-computing.
- [udunits](https://www.automicvault.com/zh-hans/pkg/brew/udunits/) - Local package facts share a topical domain. Shared terms: cli, computing, science, scientific, scientific-computing.
- [itk](https://www.automicvault.com/zh-hans/pkg/brew/itk/) - Local package facts share a topical domain. Shared terms: cli, computing, science, scientific, scientific-computing.

## Combined YAML source

View the package source record on GitHub. [combined/numbat.yml](https://github.com/automic-vault/db/blob/main/combined/numbat.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
