macOS
brew install bclocal Homebrew formula metadata
brew
bc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install bclocal Homebrew formula metadata
sudo apk add bcAlpine Linux edge package indexes · bc · ソース: dl-cdn.alpinelinux.org
sudo dnf install bcFedora Rawhide package metadata · bc · ソース: dl.fedoraproject.org
nix profile install nixpkgs#bcnixpkgs package indexes · pkgs/by-name/bc/bc/package.nix · ソース: api.github.com
sudo pacman -S bcArch Linux sync databases · bc · ソース: geo.mirror.pkgbuild.com
sudo zypper install bcopenSUSE Tumbleweed package metadata · bc · ソース: download.opensuse.org
scoop install main/bcScoop official bucket manifest trees · bucket/bc.json · ソース: api.github.com
概要
Arbitrary precision numeric processing language
履歴
bc is the Unix arbitrary-precision calculator language: small enough to be a command-line calculator, but old and standard enough to appear in scripts, POSIX systems, and package-manager bootstrap sets. GNU bc packages both bc and dc, preserving the classic infix calculator and reverse-polish desk-calculator pairing.
The bc language predates GNU bc as a Unix utility for arbitrary-precision arithmetic. POSIX standardizes bc as an arbitrary-precision arithmetic language with an interactive mode, file operands, and the -l math-library option.
GNU bc is the GNU implementation of that utility family. Its documentation describes bc as an arbitrary-precision numeric processing language and ships dc alongside it, keeping the historical relationship between the higher-level bc language and the lower-level desk calculator.
bc became a portable denominator for shell arithmetic that exceeded the shell's integer facilities or needed decimal scale control. Because POSIX specifies it, distribution packages for bc are common across Unix-like systems, and Homebrew, Debian, Fedora, Arch, Nix, MacPorts, Alpine, and others all carry it.
The GNU package matters especially on systems where the base OS does not include GNU userland behavior by default, such as macOS, and in minimal containers where explicit installation keeps scripts reproducible.
Typical command-line use pipes expressions into bc, invokes bc -l for math functions and a nonzero default scale, or runs bc interactively as a tiny programmable calculator. Scripts use it for decimal arithmetic, base conversion, and calculations where shell integer arithmetic is not enough.
The paired dc executable serves users who prefer reverse-polish notation or need the older stack-calculator language.
bc is a package-nerd fossil with live production value: it is tiny, standardized, scriptable, and still frequently pulled into build images because some old configure script, packaging helper, or shell one-liner expects it.
It sits at an interesting boundary between core utility and optional package. On one machine it is part of the assumed Unix furniture; on another it is the missing dependency that breaks a build with a calculator-shaped hole.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
bc | cli | グローバル実行可能ファイル | |
dc | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
https://www.gnu.org/software/bc/
インストールメタデータ
| パッケージキー | brew:bc |
|---|---|
| バージョン | 1.08.2 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/bc |
| ホームページ | https://www.gnu.org/software/bc/ |
| 上流ドキュメント | https://www.gnu.org/software/bc |
| ライセンス | GPL-3.0-or-later |
| ソースアーカイブ | https://ftpmirror.gnu.org/gnu/bc/bc-1.08.2.tar.gz |
| ビルド依存関係 | texinfo |
| macOS 提供ライブラリ | flex, libedit |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | bc |
| Version Scheme | 0 |
| Revision | 0 |
| Conflicts With |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | yes |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
bc 1.07.1-4
GNU bc arbitrary precision calculator language
https://www.gnu.org/software/bc/
sudo apt install bcdc 1.07.1-4
GNU dc arbitrary precision reverse-polish calculator
https://www.gnu.org/software/bc/
sudo apt install dcbc
nix profile install nixpkgs#bcbc 1.07.1-3ubuntu4
GNU bc arbitrary precision calculator language
https://www.gnu.org/software/bc/
sudo apt install bcdc 1.07.1-3ubuntu4
GNU dc arbitrary precision reverse-polish calculator
https://www.gnu.org/software/bc/
sudo apt install dcbc 1.08.2-r1
Arbitrary precision numeric processing language (calculator)
https://www.gnu.org/software/bc/bc.html
sudo apk add bcbc-doc 1.08.2-r1
Arbitrary precision numeric processing language (calculator) (documentation)
https://www.gnu.org/software/bc/bc.html
sudo apk add bc-docbc 1.08.2-4.fc44
GNU's bc (a numeric processing language) and dc (a calculator)
https://www.gnu.org/software/bc/
sudo dnf install bcbc 1.08.2-1
An arbitrary precision calculator language
https://www.gnu.org/software/bc/
sudo pacman -S bcbc 1.08.2-1.4
GNU Command Line Calculator
https://www.gnu.org/software/bc/
sudo zypper install bcbc
sudo port install bcmain/bc
scoop install main/bcソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.