# 使用 Homebrew, MacPorts, Nix 安装 clac

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

## 安装

```sh
sudo av install brew:clac
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install clac
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clac
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#clac
```

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

## 软件包事实

- **软件包键:** brew:clac
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/clac>
- **版本:** 0.3.5
- **来源摘要:** Command-line, stack-based calculator with postfix notation
- **主页:** <https://github.com/soveran/clac>
- **仓库:** <https://github.com/soveran/clac>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/soveran/clac/archive/refs/tags/0.3.5.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- clac (cli)
- clac (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.3.5
- 本地数据: OK
- 上游仓库: https://github.com/soveran/clac
- 检测到的最新版本: 0.3.5 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Clac is a command-line, stack-based calculator using postfix notation with the stack visible as calculations happen.

### 项目历史

The official repository was created in 2017 and its first GitHub release was named Initial release. The README explains the project motivation: the author liked Forth and other concatenative languages, used `dc` heavily, and wanted a calculator UI with an always-visible stack and realtime updates.

### 采用历史

The batch input records Clac in Homebrew, MacPorts, and Nix. The official README directs users to GitHub releases and a distribution-packages wiki page, indicating upstream expected both direct release installs and package-manager installs.

### 使用方式

Users run `clac` interactively, enter numbers to push them onto the stack, and type postfix commands such as arithmetic, logarithm, trigonometry, stack, stash, and custom word operations. The README documents a `words` configuration file for user-defined operations.

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

Clac is a neat package-manager specimen because it modernizes the tiny terminal calculator niche rather than replacing it with a GUI. It is small, self-contained, configurable through XDG-style paths, and culturally adjacent to `dc`, Forth, and RPN calculator users.

### 时间线

- 2017: Official GitHub repository created.
- 2017: Initial release 0.1.0 published.
- 2026: Official GitHub repository metadata shows recent activity.

### Related projects

- The README explicitly relates Clac to `dc`, Forth, stack-based languages, concatenative languages, postfix notation, and reverse Polish notation.

### 来源

- <https://github.com/soveran/clac/blob/master/README.md>
- <https://api.github.com/repos/soveran/clac>
- <https://api.github.com/repos/soveran/clac/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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

- Unix: $CLAC_WORDS, $XDG_CONFIG_HOME/clac/words, ~/.config/clac/words
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** clac
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - clac: normalized package name match | nixpkgs package indexes: pkgs/by-name/cl/clac/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - clac: normalized package name match | MacPorts ports tree: math/clac/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://pkg.so/zh-hans/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [fend](https://pkg.so/zh-hans/brew/fend/) - Shares pkgdb curated category or tags: calculator, cli, productivity.
- [kalker](https://pkg.so/zh-hans/brew/kalker/) - Shares pkgdb curated category or tags: calculator, cli, productivity.
- [squiid](https://pkg.so/zh-hans/brew/squiid/) - Shares pkgdb curated category or tags: calculator, cli, productivity, rpn.
- [tmux](https://pkg.so/zh-hans/brew/tmux/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [vim](https://pkg.so/zh-hans/brew/vim/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [yazi](https://pkg.so/zh-hans/brew/yazi/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [midnight-commander](https://pkg.so/zh-hans/brew/midnight-commander/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [mutt](https://pkg.so/zh-hans/brew/mutt/) - Shares pkgdb curated category or tags: cli, productivity, terminal.
- [mdp](https://pkg.so/zh-hans/brew/mdp/) - Local package facts share a topical domain. Shared terms: based, cli, command-line, line, productivity.
- [bartib](https://pkg.so/zh-hans/brew/bartib/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, productivity, terminal.
- [nmail](https://pkg.so/zh-hans/brew/nmail/) - Local package facts share a topical domain. Shared terms: based, cli, productivity, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/clac.yml](https://github.com/mxcl/pkgdb/blob/main/combined/clac.yml)


## 来源

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