Automic VaultAutomic Vault

brew

Install calc with Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper

Arbitrary precision calculator. Version 2.17.0.0 via Homebrew; verified 2026-06-22.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install calc

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install calc

MacPorts ports tree · math/calc/Portfile · source: api.github.com

Linux

Debian aptverified · 92%
sudo apt install calc

Debian stable package indexes · calc · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install calc

Fedora Rawhide package metadata · calc · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#calc

nixpkgs package indexes · pkgs/by-name/ca/calc/package.nix · source: api.github.com

Arch Linux pacmanverified · 92%
sudo pacman -S calc

Arch Linux sync databases · calc · source: geo.mirror.pkgbuild.com

openSUSE zypperverified · 92%
sudo zypper install calc

openSUSE Tumbleweed package metadata · calc · source: download.opensuse.org

overview

Package summary

Arbitrary precision calculator

Commands and aliases

  • calc

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 1984: Earlier public-domain arbitrary-precision routines were posted to the net, later influencing calc's ancestry.
  • 1990s-2000s: calc circulated as source, binaries, and mirrored tarballs maintained by Landon Curt Noll.
  • 2022: Official calc web pages point users to GitHub releases and the GitHub source repository.
  • 2026: CHANGES documents calc 2.17.0.0 work, including C17 expectations, XDG Base Directory support, and a legacy branch for old systems.

Related projects

  • Related tools include `bc`, `dc`, GNU bc, PARI/GP, Python's decimal and fractions modules, Maxima, and small Unix math utilities. calc occupies the middle ground: scriptable and exact like `bc`, but with a richer C-like language and built-in math library.

security posture

No protected-tool coverage found yet

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.

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 1 runtime dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

Configuration and credential file locations

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.

Configuration files

Config paths the tool may read or write during local use.

Unix
${XDG_CONFIG_HOME:-$HOME/.config}/calc/calcrc~/.calcrc

executables

Installed executables

CommandKindExposureNote
calccliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version2.17.0.0
manager updated2026-06-22
local dataok
upstreamnot checked
latest detectednot detected

https://github.com/lcn2/calc

install metadata

Package metadata

Package keybrew:calc
Version2.17.0.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/calc
Homepagehttp://www.isthe.com/chongo/tech/comp/calc/
Repositoryhttps://github.com/lcn2/calc
Upstream docshttp://www.isthe.com/chongo/tech/comp/calc
LicenseLGPL-2.1-or-later
Source archivehttps://github.com/lcn2/calc/archive/refs/tags/v2.17.0.0.tar.gz
Last updated2026-06-22T14:02:56-07:00
Pulseupdated
Dependenciesreadline
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namecalc
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

calc 2.15.1.0-1

Arbitrary precision calculator

http://www.isthe.com/chongo/tech/comp/calc/

sudo apt install calc
  • Section: math
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Calc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: calc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

calc-common 2.15.1.0-1

Arbitrary precision calculator (common files)

http://www.isthe.com/chongo/tech/comp/calc/

sudo apt install calc-common
  • Section: math
  • Architecture: all
  • Source Package: calc
  • normalized package name match
  • Matched by: Calc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: calc-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

calc-dev 2.15.1.0-1

Library for arbitrary precision arithmetic

http://www.isthe.com/chongo/tech/comp/calc/

sudo apt install calc-dev
  • Section: devel
  • Architecture: amd64
  • Source Package: calc
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Calc
Debian stable package indexes · deb.debian.org · Debian stable package indexes: calc-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

calc

nix profile install nixpkgs#calc
  • normalized package name match
  • Matched by: Calc
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ca/calc/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

calc 2.15.0.4-1build2

Arbitrary precision calculator

http://www.isthe.com/chongo/tech/comp/calc/

sudo apt install calc
  • Section: universe/math
  • Architecture: amd64
  • 4 dependencies
  • normalized package name match
  • Matched by: Calc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: calc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

calc-common 2.15.0.4-1build2

Arbitrary precision calculator (common files)

http://www.isthe.com/chongo/tech/comp/calc/

sudo apt install calc-common
  • Section: universe/math
  • Architecture: all
  • Source Package: calc
  • normalized package name match
  • Matched by: Calc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: calc-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

calc-dev 2.15.0.4-1build2

Library for arbitrary precision arithmetic

http://www.isthe.com/chongo/tech/comp/calc/

sudo apt install calc-dev
  • Section: universe/devel
  • Architecture: amd64
  • Source Package: calc
  • 2 dependencies
  • 1 optional deps
  • normalized package name match
  • Matched by: Calc
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: calc-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

calc 2.16.1.2-1.fc44

Arbitrary precision arithmetic system and calculator

http://isthe.com/chongo/tech/comp/calc/

sudo dnf install calc
  • License: LGPL-2.1-only AND Unlicense
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: calc
  • 5 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Calc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: calc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

calc-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-devel
  • License: LGPL-2.1-only AND Unlicense
  • Category: Unspecified
  • Architecture: i686
  • Source Package: calc
  • 3 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Calc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: calc-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

calc-libs 2.16.1.2-1.fc44

Libraries for the calc arithmetic system

http://isthe.com/chongo/tech/comp/calc/

sudo dnf install calc-libs
  • License: LGPL-2.1-only AND Unlicense
  • Category: Unspecified
  • Architecture: i686
  • Source Package: calc
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Calc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: calc-libs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

calc-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-stdrc
  • License: LGPL-2.1-only AND Unlicense
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: calc
  • 2 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Calc
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: calc-stdrc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

calc 2.17.0.0-1

Arbitrary precision console calculator

https://github.com/lcn2/calc

sudo pacman -S calc
  • License: LGPL-2.1-only
  • Architecture: x86_64
  • 1 dependencies
  • normalized package name match
  • Matched by: Calc
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: calc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

calc 2.16.1.2-1.3

C-style arbitrary precision calculator

http://www.isthe.com/chongo/tech/comp/calc/index.html

sudo zypper install calc
  • License: LGPL-2.1-only
  • Category: Productivity/Scientific/Math
  • Architecture: x86_64
  • Source Package: calc
  • 6 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Calc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: calc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

calc-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-devel
  • License: LGPL-2.1-only
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: calc
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Calc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: calc-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libcalc2_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_2
  • License: LGPL-2.1-only
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: calc
  • 3 dependencies
  • 3 provides
  • normalized package name match
  • Matched by: Calc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libcalc2_16_1_2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

calc

sudo port install calc
  • normalized package name match
  • Matched by: Calc
MacPorts ports tree · api.github.com · MacPorts ports tree: math/calc/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment