macOS
brew install calclocal Homebrew formula metadata
sudo port install calcMacPorts ports tree · math/calc/Portfile · source: api.github.com
brew
Arbitrary precision calculator. Version 2.17.0.0 via Homebrew; verified 2026-06-22.
install
brew install calclocal Homebrew formula metadata
sudo port install calcMacPorts ports tree · math/calc/Portfile · source: api.github.com
sudo apt install calcDebian stable package indexes · calc · source: deb.debian.org
sudo dnf install calcFedora Rawhide package metadata · calc · source: dl.fedoraproject.org
nix profile install nixpkgs#calcnixpkgs package indexes · pkgs/by-name/ca/calc/package.nix · source: api.github.com
sudo pacman -S calcArch Linux sync databases · calc · source: geo.mirror.pkgbuild.com
sudo zypper install calcopenSUSE Tumbleweed package metadata · calc · source: download.opensuse.org
overview
Arbitrary precision calculator
history
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.
security posture
No matching local secret-handling manifest was found for calc. Nucleus package metadata is still published here so future coverage has a stable package URL.
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
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~/.calcrcexecutables
| Command | Kind | Exposure | Note |
|---|---|---|---|
calc | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
install metadata
| Package key | brew:calc |
|---|---|
| Version | 2.17.0.0 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/calc |
| Homepage | http://www.isthe.com/chongo/tech/comp/calc/ |
| Repository | https://github.com/lcn2/calc |
| Upstream docs | http://www.isthe.com/chongo/tech/comp/calc |
| License | LGPL-2.1-or-later |
| Source archive | https://github.com/lcn2/calc/archive/refs/tags/v2.17.0.0.tar.gz |
| Last updated | 2026-06-22T14:02:56-07:00 |
| Pulse | updated |
| Dependencies | readline |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | calc |
| 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 |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
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-1.fc44
Arbitrary precision arithmetic system and calculator
http://isthe.com/chongo/tech/comp/calc/
sudo dnf install calccalc-devel 2.16.1.2-1.fc44
Development files for the calc arithmetic system
http://isthe.com/chongo/tech/comp/calc/
sudo dnf install calc-develcalc-libs 2.16.1.2-1.fc44
Libraries for the calc arithmetic system
http://isthe.com/chongo/tech/comp/calc/
sudo dnf install calc-libscalc-stdrc 2.16.1.2-1.fc44
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.16.1.2-1.3
C-style arbitrary precision calculator
http://www.isthe.com/chongo/tech/comp/calc/index.html
sudo zypper install calccalc-devel 2.16.1.2-1.3
Development files for libcalc
http://www.isthe.com/chongo/tech/comp/calc/index.html
sudo zypper install calc-devellibcalc2_16_1_2 2.16.1.2-1.3
Arbitrary precision math library
http://www.isthe.com/chongo/tech/comp/calc/index.html
sudo zypper install libcalc2_16_1_2calc
sudo port install calcsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.