# Install clac with Homebrew, MacPorts, Nix

Command-line, stack-based calculator with postfix notation. Version 0.3.5 via Homebrew; verified 2026-04-13.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install clac
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install clac
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:clac
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/clac>
- **Version:** 0.3.5
- **Source summary:** Command-line, stack-based calculator with postfix notation
- **Homepage:** <https://github.com/soveran/clac>
- **Repository:** <https://github.com/soveran/clac>
- **Upstream docs:** <https://github.com/soveran/clac#readme>
- **License:** BSD-2-Clause
- **Source archive:** <https://github.com/soveran/clac/archive/refs/tags/0.3.5.tar.gz>
- **Last updated:** 2026-04-13T10:27:34Z
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- clac (cli)
- clac (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.3.5
- Package-manager updated: 2026-04-13
- Local data: ok
- Upstream repository: https://github.com/soveran/clac
- Upstream latest detected: 0.3.5 (current)
## Project history and usage

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

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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 Details

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

## Other Package-Manager Records

- 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


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Productivity CLI packages](https://www.automicvault.com/pkg/productivity-cli-packages/) - Matched curated productivity category metadata from av.db.
- [fend](https://www.automicvault.com/pkg/brew/fend/) - Shares av.db curated category or tags: calculator, cli, productivity.
- [kalker](https://www.automicvault.com/pkg/brew/kalker/) - Shares av.db curated category or tags: calculator, cli, productivity.
- [squiid](https://www.automicvault.com/pkg/brew/squiid/) - Shares av.db curated category or tags: calculator, cli, productivity.
- [w-calc](https://www.automicvault.com/pkg/brew/w-calc/) - Shares av.db curated category or tags: calculator, cli, productivity.
- [abook](https://www.automicvault.com/pkg/brew/abook/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [aerc](https://www.automicvault.com/pkg/brew/aerc/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [alot](https://www.automicvault.com/pkg/brew/alot/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [alpine](https://www.automicvault.com/pkg/brew/alpine/) - Shares av.db curated category or tags: cli, productivity, terminal.
- [mdp](https://www.automicvault.com/pkg/brew/mdp/) - Local package facts share a topical domain. Shared terms: based, cli, command-line, line, productivity.
- [bartib](https://www.automicvault.com/pkg/brew/bartib/) - Local package facts share a topical domain. Shared terms: cli, command-line, line, productivity, terminal.
- [nmail](https://www.automicvault.com/pkg/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/automic-vault/db/blob/main/combined/clac.yml)


## Sources

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