macOS
brew install calclocal Homebrew formula metadata
sudo port install calcMacPorts ports tree · math/calc/Portfile · 来源: api.github.com
安装
brew install calclocal Homebrew formula metadata
sudo port install calcMacPorts ports tree · math/calc/Portfile · 来源: api.github.com
sudo dnf install calcFedora Rawhide package metadata · calc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#calcnixpkgs package indexes · pkgs/by-name/ca/calc/package.nix · 来源: api.github.com
sudo pacman -S calcArch Linux sync databases · calc · 来源: geo.mirror.pkgbuild.com
sudo zypper install calcopenSUSE Tumbleweed package metadata · calc · 来源: download.opensuse.org
概览
Arbitrary precision calculator
历史
calc is a long-running arbitrary-precision calculator with an interactive shell, a C-like expression language, exact rational arithmetic, complex numbers, and programmable functions. Its package history is unusually old-school: a Unix mathematical tool maintained through tarballs, mirrors, distro packages, and now GitHub releases.
The official author page says most of calc was written by David I. Bell, with source and releases maintained by Landon Curt Noll, and credits Ernest W. Bowen plus others for numerical and help-file improvements. It also notes that portions derived from earlier public-domain arbitrary-precision routines posted to the net around 1984, though little recognizable code remained.
The official README presents calc as an interactive calculator that can also execute a single command from the shell. It supports huge integer arithmetic, exact fractions, complex numbers, transcendental functions, variables, loops, and user-defined functions in a C-like language.
The current CHANGES file shows active maintenance into the 2020s, including XDG Base Directory support and a 2026 2.17.0.0 line that synchronizes changes from the newer 3.0 work while keeping a legacy branch for very old systems.
calc has been packaged broadly across Unix-like systems because it fills the gap between simple desk calculators, `bc`, and larger computer algebra systems. The repository README gives install examples for yum, pacman, apt, dnf, Termux, and source builds, matching its presence in many package managers.
Its adoption is strongest among users who want scriptable exact arithmetic without pulling in a full CAS. Landon Curt Noll's pages also connect calc scripts to large-prime and astronomical interests, a good example of how small Unix math tools become personal research infrastructure.
Users run `calc` interactively, pass an expression as a command-line argument, or write scripts in calc's C-like language. Typical package-manager usage is installing the binary and then relying on it for precise integer, rational, modular, complex, and high-precision floating calculations.
The tool supports startup configuration through `calcrc` paths, with recent release notes documenting XDG Base Directory adoption alongside the older `~/.calcrc` convention.
calc matters to package nerds because it is a preserved lineage of pre-Git, pre-GitHub Unix numerics that still receives modern portability work. It is not just another calculator: it is a programmable arbitrary-precision environment small enough for base developer workflows.
It is also a reminder that package ecosystems carry historical software forward. The same package is at home in Debian, Fedora, Arch, Homebrew, MacPorts, Nix, Termux, and source tarballs, because the CLI contract has stayed useful for decades.
安全态势
没有找到 calc 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.
Config paths the tool may read or write during local use.
${XDG_CONFIG_HOME:-$HOME/.config}/calc/calcrc~/.calcrc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
calc | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:calc |
|---|---|
| 版本 | 2.17.0.0 |
| 软件包管理器 | Homebrew |
| 主页 | http://www.isthe.com/chongo/tech/comp/calc/ |
| 仓库 | https://github.com/lcn2/calc |
| 最后更新 | 2026-06-22T14:02:56-07:00 |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
calc 2.15.1.0-1
Arbitrary precision calculator
http://www.isthe.com/chongo/tech/comp/calc/
sudo apt install calccalc-common 2.15.1.0-1
Arbitrary precision calculator (common files)
http://www.isthe.com/chongo/tech/comp/calc/
sudo apt install calc-commoncalc-dev 2.15.1.0-1
Library for arbitrary precision arithmetic
http://www.isthe.com/chongo/tech/comp/calc/
sudo apt install calc-devcalc
nix profile install nixpkgs#calccalc 2.15.0.4-1build2
Arbitrary precision calculator
http://www.isthe.com/chongo/tech/comp/calc/
sudo apt install calccalc-common 2.15.0.4-1build2
Arbitrary precision calculator (common files)
http://www.isthe.com/chongo/tech/comp/calc/
sudo apt install calc-commoncalc-dev 2.15.0.4-1build2
Library for arbitrary precision arithmetic
http://www.isthe.com/chongo/tech/comp/calc/
sudo apt install calc-devcalc 2.16.1.2-2.fc45
Arbitrary precision arithmetic system and calculator
http://isthe.com/chongo/tech/comp/calc/
sudo dnf install calccalc-devel 2.16.1.2-2.fc45
Development files for the calc arithmetic system
http://isthe.com/chongo/tech/comp/calc/
sudo dnf install calc-develcalc-libs 2.16.1.2-2.fc45
Libraries for the calc arithmetic system
http://isthe.com/chongo/tech/comp/calc/
sudo dnf install calc-libscalc-stdrc 2.16.1.2-2.fc45
Standard resource files the calc arithmetic system
http://isthe.com/chongo/tech/comp/calc/
sudo dnf install calc-stdrccalc 2.17.0.0-1
Arbitrary precision console calculator
sudo pacman -S calccalc 2.17.0.0-1.2
C-style arbitrary precision calculator
http://www.isthe.com/chongo/tech/comp/calc/index.html
sudo zypper install calccalc-devel 2.17.0.0-1.2
Development files for libcalc
http://www.isthe.com/chongo/tech/comp/calc/index.html
sudo zypper install calc-devellibcalc2_17_0_0 2.17.0.0-1.2
Arbitrary precision math library
http://www.isthe.com/chongo/tech/comp/calc/index.html
sudo zypper install libcalc2_17_0_0calc
sudo port install calc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.