# 使用 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
- **版本:** 0.3.5
- **来源摘要:** Command-line, stack-based calculator with postfix notation
- **主页:** <https://github.com/soveran/clac>
- **仓库:** <https://github.com/soveran/clac>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- clac (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.3.5
## 项目历史与用法

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
## 其他软件包管理器记录

- 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


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
