# Install fend with Homebrew, MacPorts, Nix, scoop, winget

Arbitrary-precision unit-aware calculator. Version 1.5.8 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:fend
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install fend
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install fend
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#fend
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/fend
```

  Evidence: Scoop official bucket manifest trees: bucket/fend.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- winget (92%):

```sh
winget install --id printfn.fend -e
```

  Evidence: Windows Package Manager source index: printfn.fend from https://cdn.winget.microsoft.com/cache/source.msix

## Package facts

- **Package key:** brew:fend
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/fend>
- **Version:** 1.5.8
- **Source summary:** Arbitrary-precision unit-aware calculator
- **Homepage:** <https://printfn.github.io/fend>
- **Repository:** <https://github.com/printfn/fend>
- **Upstream docs:** <https://github.com/printfn/fend#readme>
- **License:** MIT
- **Source archive:** <https://github.com/printfn/fend/archive/refs/tags/v1.5.8.tar.gz>
- **Last updated:** 2026-06-22T14:03:19-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- fend (cli)
- fend (alias)

## Build dependencies

- pandoc
- pkgconf
- rust

## 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: 1.5.8
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/printfn/fend
- Upstream latest detected: v1.5.8 (current)
## Project history and usage

fend is an arbitrary-precision, unit-aware calculator available as a CLI, web app, Rust crate family, WebAssembly package, and packaged desktop/server-side tool.

### Project history

The GitHub release history starts with v0.1.0 on 2020-08-31. Early releases built up the calculator core, REPL behavior, history handling, terminal color, configuration support, and unit operations.

By 2022, fend had added automatic currency exchange-rate downloads and file input. Later releases expanded into custom units, decimal separator options, roman numerals, number-to-words conversion, scripting-oriented print functions, web UI improvements, and more reliable exchange-rate sourcing.

The 1.x series remains active. The changelog lists v1.5.8 on 2026-01-24, with fixes and improvements around TLS defaults, the interactive clear command, significant-figure rounding, pi precision, currency conversions, Turkish lira aliases, variable serialization, and performance.

### Adoption history

The official README documents package-manager installation through Homebrew, MacPorts, AUR, AOSC OS, Void Linux xbps, Nix, Cargo, Windows Package Manager, Chocolatey, Scoop, and Pkgx, alongside manual binaries from GitHub releases.

fend also appears beyond the CLI: the README lists the web interface, npm WebAssembly packages, a Telegram bot, and projects using fend such as MicroPad, Fendesk, metasearch2, FendApp, and Asleh.

### How it is used

fend is used as a REPL or one-shot calculator for exact arithmetic, complex numbers, units, base conversion, dice notation, variables, trigonometric functions, strings, custom units, currency conversion, and small scripts.

The manual documents a CLI configuration file at OS-specific paths, with options for colors, history length, prompt text, internet access, exchange-rate source, decimal separator style, custom units, and related behavior. It also stores command history under the user's state directory by default.

### Why package nerds care

fend is the sort of package nerds like because it replaces a pile of ad hoc shell, Python, bc, units, and browser-tab calculations with one small executable that understands dimensions and keeps exact arithmetic where possible.

It also shows a modern packaging pattern for Rust tools: a single core used by CLI, web, Wasm, bot, and package-manager distributions, with release notes that track both mathematical correctness and platform packaging details.

### Timeline

- 2020: v0.1.0 released on 2020-08-31.
- 2021: CLI config file support added.
- 2022: Up-to-date currency exchange-rate support added.
- 2023: Custom units in ~/.config/fend/config.toml added.
- 2024: Web UI rewrite, roman numerals, number-to-words, and locale-oriented decimal separator support land across 1.4.x releases.
- 2026: v1.5.8 released on 2026-01-24.

### Related projects

- GNU units and Qalculate are adjacent unit-aware calculator tools.
- bc, dc, and shell arithmetic cover narrower command-line calculator niches.
- fend-wasm and the fend web interface reuse the same project in browser and JavaScript-package contexts.

### Sources

- <https://github.com/printfn/fend>
- <https://raw.githubusercontent.com/printfn/fend/main/README.md>
- <https://printfn.github.io/fend/documentation/>
- <https://raw.githubusercontent.com/printfn/fend/main/CHANGELOG.md>
- <https://github.com/printfn/fend/releases>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- Nix - fend: normalized package name match | nixpkgs package indexes: pkgs/by-name/fe/fend/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - fend: normalized package name match | MacPorts ports tree: math/fend/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/fend: normalized package name match | Scoop official bucket manifest trees: bucket/fend.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - printfn.fend: normalized package name match | Windows Package Manager source index: printfn.fend from https://cdn.winget.microsoft.com/cache/source.msix


## 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.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [pandoc](https://www.automicvault.com/pkg/brew/pandoc/) - Build dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://www.automicvault.com/pkg/brew/rust/) - Build dependency declared by Homebrew.
- [squiid](https://www.automicvault.com/pkg/brew/squiid/) - Shares av.db curated category or tags: calculator, cli, productivity, rust.
- [w-calc](https://www.automicvault.com/pkg/brew/w-calc/) - Shares av.db curated category or tags: arbitrary-precision, calculator, cli, productivity.
- [clac](https://www.automicvault.com/pkg/brew/clac/) - 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.
- [amp](https://www.automicvault.com/pkg/brew/amp/) - Shares av.db curated category or tags: cli, productivity, rust.
- [clock-rs](https://www.automicvault.com/pkg/brew/clock-rs/) - Shares av.db curated category or tags: cli, productivity, rust.
- [ekphos](https://www.automicvault.com/pkg/brew/ekphos/) - Shares av.db curated category or tags: cli, productivity, rust.
- [fresh-editor](https://www.automicvault.com/pkg/brew/fresh-editor/) - Shares av.db curated category or tags: cli, productivity, rust.
- [qalculate-gtk](https://www.automicvault.com/pkg/brew/qalculate-gtk/) - Local package facts share a topical domain. Shared terms: calculator, cli, productivity, unit.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- 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
