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

Arbitrary-precision unit-aware calculator. Version 1.5.8 via Homebrew; verified 2026-06-22. Also installable with nix: nix profile install nixpkgs#fend.

## 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
- **Version:** 1.5.8
- **Source summary:** Arbitrary-precision unit-aware calculator
- **Homepage:** <https://printfn.github.io/fend>
- **Repository:** <https://github.com/printfn/fend>
- **Last updated:** 2026-06-22T14:03:19-07:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- fend (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.5.8
## 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

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


## Combined YAML source

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


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
