pkg.soopen package index

brew / 排名 2290

使用 Homebrew, apt, dnf, MacPorts, Nix, pacman, zypper 安装 calc

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install calc

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install calc

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

Linux

Debian apt已验证 · 92%
sudo apt install calc

Debian stable package indexes · calc · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install calc

Fedora Rawhide package metadata · calc · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#calc

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

Arch Linux pacman已验证 · 92%
sudo pacman -S calc

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

openSUSE zypper已验证 · 92%
sudo zypper install calc

openSUSE Tumbleweed package metadata · calc · 来源: download.opensuse.org

概览

软件包摘要

Arbitrary precision calculator

命令和别名

  • calc

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

尚未找到受保护工具覆盖

没有找到 calc 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • 未记录 Homebrew bottle 元数据。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
calc可执行文件已索引可执行文件从本地可执行文件索引发现。

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-08-03
管理器版本2.17.0.0
管理器更新时间2026-06-22
本地数据未知
上游不可用
检测到的最新版本未检测到
  • OK没有生成新鲜度警告。

安装元数据

软件包元数据

软件包键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
Pulseupdated
Bottle未记录
服务未声明

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式: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-2.fc45

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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
dnf95%

calc-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-devel
  • License: LGPL-2.1-only AND Unlicense
  • Category: Unspecified
  • Architecture: i686
  • Source Package: calc
  • 3 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
dnf95%

calc-libs 2.16.1.2-2.fc45

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 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式: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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst
dnf95%

calc-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-stdrc
  • License: LGPL-2.1-only AND Unlicense
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: calc
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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 依赖
  • normalized package name match
  • 匹配方式: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.17.0.0-1.2

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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Calc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: calc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

calc-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-devel
  • License: LGPL-2.1-only
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: calc
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Calc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: calc-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
zypper95%

libcalc2_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_0
  • License: LGPL-2.1-only
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: calc
  • 3 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Calc
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libcalc2_17_0_0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst
MacPorts95%

calc

sudo port install calc
  • normalized package name match
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation