# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, winget 安装 cln

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

## 安装

```sh
sudo av install brew:cln
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install cln
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cln
```

  证据: MacPorts ports tree: math/cln/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add cln
```

  证据: Alpine Linux edge package indexes: cln from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install libcln-dev
```

  证据: Debian stable package indexes: libcln-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cln
```

  证据: Fedora Rawhide package metadata: cln from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cln
```

  证据: nixpkgs package indexes: pkgs/by-name/cl/cln/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S cln
```

  证据: Arch Linux sync databases: cln from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install cln
```

  证据: openSUSE Tumbleweed package metadata: cln from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- winget (92%):

```sh
winget install --id EarendilWorks.pi -e
```

  证据: Windows Package Manager source index: EarendilWorks.pi from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:cln
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/cln>
- **版本:** 1.3.7
- **来源摘要:** Class Library for Numbers
- **主页:** <https://www.ginac.de/CLN/>
- **仓库:** <https://codeberg.org/ginac/cln>
- **上游文档:** <https://www.ginac.de/CLN/cln.html>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://www.ginac.de/CLN/cln-1.3.7.tar.bz2>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- pi (cli)
- pi (别名)

## 依赖

- gmp

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.3.7
- 本地数据: OK
- 上游仓库: https://www.ginac.de/CLN/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

CLN, the Class Library for Numbers, is a C++ library for arbitrary-precision integers, rationals, floats, complex numbers, modular integers, and univariate polynomials.

### 项目历史

CLN was written by Bruno Haible and is maintained by Richard B. Kreckel. The manual copyright history reaches back to Haible's 1988 work, and the official NEWS file records public 1.0-era releases beginning in January 1999.

The library was designed around efficient numeric computation in C++: immediate small numbers, garbage collection, assembly kernels on selected CPUs, optional GMP low-level routines, Karatsuba multiplication, very-large-number algorithms, and binary splitting.

### 采用历史

CLN is closely associated with GiNaC, whose website lists CLN as related software and whose symbolic-computation focus explains why an arbitrary-precision numeric substrate mattered. CLN's own manual notes that its numeric subtypes match Common Lisp number types, so CLN can serve Common Lisp implementations as well as C++ mathematical software.

The official CLN page points users to Debian, Fedora, openSUSE, and other distribution packages, while the batch input records packaging across Alpine, Homebrew, Debian/Ubuntu as `libcln-dev`, Fedora, MacPorts, Nix, Arch, Winget, and openSUSE.

### 使用方式

Developers link CLN into C++ programs that need arbitrary-precision numeric types with algebraic operator syntax. The manual documents building with a C++11 compiler, optional GMP support, namespace `cln`, and integration hooks for memory allocation and exceptions.

The Homebrew package exposes the sample `pi` executable, but CLN's primary value is as a development library rather than an end-user CLI.

### 为什么软件包爱好者会关心

CLN matters to package maintainers because it is a compiled C++ numeric library with ABI, compiler, architecture, and GMP concerns. The NEWS history repeatedly calls out portability fixes for CPU architectures, GCC versions, MinGW, ARM, AArch64, MIPS64, RISC-V, LoongArch, and cross-compilation.

Its 1.1.0 move into namespace `cln`, separate headers, and dependence on installed GMP version 3 or newer are classic downstream packaging events: they changed include paths, source compatibility, and dependency expectations.

### 时间线

- 1988: Manual copyright history begins with Bruno Haible's work.
- 1999: CLN 1.0 released.
- 2000: CLN 1.1.0 moves identifiers into namespace `cln` and relies on installed GMP.
- 2008: CLN 1.2.0 adds huge-number support and C++ exceptions.
- 2009: CLN 1.3.0 switches to GNU autotools.
- 2019: CLN 1.3.5 adds build support for 64-bit MinGW, Elbrus 2000, RISC-V64, and MIPS release 6.
- 2024: CLN 1.3.7 adds LoongArch support and ARM compilation fixes.
- 2026: Official Codeberg repository metadata is created for ginac/cln.

### Related projects

- Related projects include GiNaC, GNU GMP, Common Lisp numeric systems, LiDIA, and mathematical C++ software that needs arbitrary-precision arithmetic.

### 来源

- <https://www.ginac.de/CLN/>
- <https://www.ginac.de/CLN/cln.html>
- <https://codeberg.org/ginac/cln>
- <https://codeberg.org/ginac/cln/src/branch/master/NEWS>
- <https://www.ginac.de/>


## 安全说明

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


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cln
- **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:** head, stable

## 其他软件包管理器记录

- Debian apt - libcln-dev - 1.3.7-1+b1: normalized package name match | Debian stable package indexes: libcln-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Development library for Class Library for Numbers (c++) | http://www.ginac.de/CLN/
- Debian apt - libcln6 - 1.3.7-1+b1: normalized package name match | Debian stable package indexes: libcln6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Class Library for Numbers (C++) | http://www.ginac.de/CLN/
- Debian apt - pi - 1.3.7-1+b1: normalized package name match | Debian stable package indexes: pi from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Compute Archimedes' constant Pi to arbitrary precision | http://www.ginac.de/CLN/
- Nix - cln: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/cln/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libcln-dev - 1.3.7-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcln-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Development library for Class Library for Numbers (c++) | http://www.ginac.de/CLN/
- Ubuntu apt - libcln6 - 1.3.7-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libcln6 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Class Library for Numbers (C++) | http://www.ginac.de/CLN/
- Ubuntu apt - pi - 1.3.7-1: normalized package name match | Ubuntu 24.04 LTS package indexes: pi from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Compute Archimedes' constant Pi to arbitrary precision | http://www.ginac.de/CLN/
- apk - cln - 1.3.7-r2: normalized package name match | Alpine Linux edge package indexes: cln from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C++ class library for numbers | https://www.ginac.de/CLN/
- apk - cln-dev - 1.3.7-r2: normalized package name match | Alpine Linux edge package indexes: cln-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C++ class library for numbers (development files) | https://www.ginac.de/CLN/
- apk - cln-doc - 1.3.7-r2: normalized package name match | Alpine Linux edge package indexes: cln-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | C++ class library for numbers (documentation) | https://www.ginac.de/CLN/
- dnf - cln - 1.3.6-10.fc44: normalized package name match | Fedora Rawhide package metadata: cln from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Class Library for Numbers | http://www.ginac.de/CLN/
- dnf - cln-devel - 1.3.6-10.fc44: normalized package name match | Fedora Rawhide package metadata: cln-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development files for programs using the CLN library | http://www.ginac.de/CLN/
- pacman - cln - 1.3.7-3: normalized package name match | Arch Linux sync databases: cln from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Class library for numbers | https://www.ginac.de/CLN/
- zypper - cln - 1.3.7-1.7: normalized package name match | openSUSE Tumbleweed package metadata: cln from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Class Library for Numbers (C++) | https://www.ginac.de/CLN/
- zypper - cln-devel - 1.3.7-1.7: normalized package name match | openSUSE Tumbleweed package metadata: cln-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Class Library for Numbers (C++) | https://www.ginac.de/CLN/
- MacPorts - cln: normalized package name match | MacPorts ports tree: math/cln/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [ginac](https://www.automicvault.com/zh-hans/pkg/brew/ginac/) - Popular package that depends on this formula.
- [guile](https://www.automicvault.com/zh-hans/pkg/brew/guile/) - Local package facts share a topical domain. Shared terms: gmp.
- [mkvtoolnix](https://www.automicvault.com/zh-hans/pkg/brew/mkvtoolnix/) - Local package facts share a topical domain. Shared terms: gmp.

## Combined YAML source

View the package source record on GitHub. [combined/cln.yml](https://github.com/automic-vault/db/blob/main/combined/cln.yml)


## 来源

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
