# Install cheat with Homebrew, dnf, MacPorts, Nix, zypper, scoop

Create and view interactive cheat sheets for *nix commands. Version 5.1.0 via Homebrew; verified 2026-07-25. Also installable with nix: nix profile install nixpkgs#cheat.

## Install

```sh
sudo av install brew:cheat
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cheat
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cheat
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install cheat
```

  Evidence: Fedora Rawhide package metadata: cheat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#cheat
```

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

- zypper (92%):

```sh
sudo zypper install cheat
```

  Evidence: openSUSE Tumbleweed package metadata: cheat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/cheat
```

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

## Package facts

- **Package key:** brew:cheat
- **Package manager:** Homebrew
- **Version:** 5.1.0
- **Source summary:** Create and view interactive cheat sheets for *nix commands
- **Homepage:** <https://github.com/cheat/cheat>
- **Repository:** <https://github.com/cheat/cheat>
- **Last updated:** 2026-07-25T14:20:49-04:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- cheat (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 5.1.0
## Project history and usage

cheat is a command-line cheatsheet viewer and editor for Unix-style command reference, designed for commands that administrators use often enough to need quick reminders but not often enough to memorize.

### Project history

The GitHub repository was created in July 2013. The README describes a CLI that reads plain-text cheatsheets, supports personal and community cheatpaths, can edit sheets, and can search or filter by name, regex, path, and tags.

### Adoption history

cheat grew beyond a single executable into an ecosystem around the cheat/cheatsheets repository, which was created in October 2019 for community-sourced sheets. The official installation guide lists manual binaries, `go install`, and packages for AUR, Homebrew, Docker, Nix, and Snap; the batch input also records MacPorts, Fedora, openSUSE, Scoop, and other package-manager coverage.

### How it is used

Typical use is `cheat tar` or another command name to print examples, `cheat -e` to edit or create a sheet, `cheat -l` or `cheat -b` to list sheets, and `cheat -s` or `cheat -r -s` to search sheet contents.

### Why package nerds care

cheat matters to CLI/package-manager culture because it turns command examples into local, editable, packageable data. Its XDG config, generated shell completions, community sheet repository, and broad package-manager availability make it a familiar small tool in terminal setup lists.

### Timeline

- 2013: GitHub repository created.
- 2019: cheat/cheatsheets repository created for community-sourced sheets.
- 2019: 3.0.0 release published on GitHub.
- 2026: Current installation docs describe 5.0.0 release binaries.

### Related projects

- cheat/cheatsheets provides community-sourced cheatsheets used by the tool.
- Chroma is used for syntax highlighting according to the README.
- The project overlaps culturally with man pages, tldr-style pages, and shell-completion-driven command reference tools.

### Sources

- <https://github.com/cheat/cheat>
- <https://github.com/cheat/cheat/blob/master/INSTALLING.md>
- <https://api.github.com/repos/cheat/cheat>
- <https://api.github.com/repos/cheat/cheatsheets>


## 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: ~/.config/cheat/conf.yml, path set by CHEAT_CONFIG_PATH
## Other Package-Manager Records

- Nix - cheat: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/cheat/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - cheat - 4.4.2-15.fc45: normalized package name match | Fedora Rawhide package metadata: cheat from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Help for various commands and their use cases | https://github.com/cheat/cheat
- dnf - cheat-bash-completion - 4.4.2-15.fc45: normalized package name match | Fedora Rawhide package metadata: cheat-bash-completion from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Bash completion support for cheat | https://github.com/cheat/cheat
- dnf - cheat-community-cheatsheets - 4.4.2-15.fc45: normalized package name match | Fedora Rawhide package metadata: cheat-community-cheatsheets from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Cheatsheets created by community for cheat | https://github.com/cheat/cheatsheets
- dnf - cheat-fish-completion - 4.4.2-15.fc45: normalized package name match | Fedora Rawhide package metadata: cheat-fish-completion from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Fish completion support for cheat | https://github.com/cheat/cheat
- dnf - cheat-zsh-completion - 4.4.2-15.fc45: normalized package name match | Fedora Rawhide package metadata: cheat-zsh-completion from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Zsh completion support for cheat | https://github.com/cheat/cheat
- zypper - cheat - 5.1.0-2.3: normalized package name match | openSUSE Tumbleweed package metadata: cheat from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Allows you to create and view interactive cheatsheets on the command-line | https://github.com/cheat/cheat
- MacPorts - cheat: normalized package name match | MacPorts ports tree: devel/cheat/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/cheat: normalized package name match | Scoop official bucket manifest trees: bucket/cheat.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Combined YAML source

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


## Sources

- 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
