# Install nsnake with Homebrew, apk, apt, dnf, Nix, zypper

Classic snake game with textual interface. Version 3.0.1 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:nsnake
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nsnake
```

  Evidence: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add nsnake
```

  Evidence: Alpine Linux edge package indexes: nsnake from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install nsnake
```

  Evidence: Debian stable package indexes: nsnake from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install nsnake
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#nsnake
```

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

- zypper (92%):

```sh
sudo zypper install nsnake
```

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

## Package facts

- **Package key:** brew:nsnake
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nsnake>
- **Version:** 3.0.1
- **Source summary:** Classic snake game with textual interface
- **Homepage:** <https://github.com/alexdantas/nSnake>
- **Repository:** <https://github.com/alexdantas/nSnake>
- **Upstream docs:** <https://github.com/alexdantas/nSnake#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://downloads.sourceforge.net/project/nsnake/GNU-Linux/nsnake-3.0.1.tar.gz>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- nsnake (cli)
- nsnake (alias)

## Uses from macOS

- ncurses

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 3.0.1
- Local data: ok
- Upstream repository: https://github.com/alexdantas/nSnake
- info: No package-manager update timestamp was available.
- info: No cached GitHub release or tag data was available.
## Project history and usage

nSnake is a terminal implementation of the classic Snake game, built with ncurses and distributed as a command-line game. The upstream README describes it as a text-interface clone with customizable gameplay, appearance, key bindings, levels, multiple modes, and per-setting scores.

### Project history

The GitHub repository was created on January 26, 2012. The release history shows a transition from a simpler C/ncurses game to a larger C++ version: v1.7 on February 18, 2014 was described as the last old release, v2.0.0 on March 6, 2014 was a substantial rewrite with customizable rules and interface work, and v3.0.0 on July 28, 2014 added custom levels and scrolling maps.

### Adoption history

nSnake is a small terminal-game package rather than infrastructure, but it is widely packaged enough to show durable hobbyist adoption: Homebrew, Debian, Ubuntu, Fedora-family packages, Nix, Alpine, and openSUSE all carry it. Homebrew's formula API reports far more installs than several other niche CLI packages in this batch, consistent with a discoverable toy/tool package.

### How it is used

Users install it from a package manager and run `nsnake` in a terminal. The default controls are arrow keys to move, `p` to pause, `h` for help, and `q` to quit; settings and scores live under `~/.local/share/nsnake`, and custom levels use `.nsnake` files under the user's levels directory.

### Why package nerds care

nSnake is notable as the kind of polished ncurses game distributions like to keep: tiny, self-contained, playable over SSH or a local terminal, and useful as both a nostalgia package and an example of terminal UI game programming.

### Timeline

- 2012-01-26: GitHub repository created.
- 2014-02-18: v1.7 release marked the last old release before the rewrite.
- 2014-03-06: v2.0.0 release reprogrammed much of the game and added richer customization.
- 2014-07-28: v3.0.0 release added levels, scrolling levels, and broader high-score tracking.
- 2026-07-01: Homebrew formula API reports stable version 3.0.1.

### Sources

- <https://formulae.brew.sh/api/formula/nsnake.json>
- <https://github.com/alexdantas/nSnake>
- <https://github.com/alexdantas/nSnake/releases>
- <https://manpages.ubuntu.com/manpages/noble/man6/nsnake.6.html>
- <https://packages.debian.org/trixie/games/nsnake>


## 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:** nsnake
- **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

- Debian apt - nsnake - 3.0.1-2.2: normalized package name match | Debian stable package indexes: nsnake from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | classic snake game on the terminal | http://nsnake.alexdantas.net/
- Nix - nsnake: normalized package name match | nixpkgs package indexes: pkgs/by-name/ns/nsnake/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - nsnake - 3.0.1-2.1: normalized package name match | Ubuntu 24.04 LTS package indexes: nsnake from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | classic snake game on the terminal | http://nsnake.alexdantas.net/
- apk - nsnake - 3.0.0-r0: normalized package name match | Alpine Linux edge package indexes: nsnake from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | snake game for your terminal | http://projects.malikania.fr/nsnake
- apk - nsnake-doc - 3.0.0-r0: normalized package name match | Alpine Linux edge package indexes: nsnake-doc from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | snake game for your terminal (documentation) | http://projects.malikania.fr/nsnake
- dnf - nsnake - 3.0.1-24.fc44: normalized package name match | Fedora Rawhide package metadata: nsnake from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The classic snake game with textual interface | https://github.com/alexdantas/nSnake
- zypper - nsnake - 3.0.1-3.5: normalized package name match | openSUSE Tumbleweed package metadata: nsnake from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Classic snake game on the terminal | https://github.com/alexdantas/nSnake


## 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.
- [Game and emulation packages](https://www.automicvault.com/pkg/game-emulation-tools/) - Matched game or emulation metadata.
- [nsuds](https://www.automicvault.com/pkg/brew/nsuds/) - Shares av.db curated category or tags: cli, game, games, ncurses, terminal.
- [moon-buggy](https://www.automicvault.com/pkg/brew/moon-buggy/) - Shares av.db curated category or tags: cli, game, games, terminal, terminal-game.
- [c2048](https://www.automicvault.com/pkg/brew/c2048/) - Shares av.db curated category or tags: cli, games, terminal, terminal-game.
- [ninvaders](https://www.automicvault.com/pkg/brew/ninvaders/) - Shares av.db curated category or tags: cli, game, games, ncurses, terminal-game.
- [robotfindskitten](https://www.automicvault.com/pkg/brew/robotfindskitten/) - Shares av.db curated category or tags: cli, game, games, ncurses, terminal-game.
- [trader](https://www.automicvault.com/pkg/brew/trader/) - Shares av.db curated category or tags: cli, game, games, terminal.
- [tty-solitaire](https://www.automicvault.com/pkg/brew/tty-solitaire/) - Shares av.db curated category or tags: cli, games, ncurses, terminal.
- [asciiquarium](https://www.automicvault.com/pkg/brew/asciiquarium/) - Shares av.db curated category or tags: cli, games, terminal.
- [yetris](https://www.automicvault.com/pkg/brew/yetris/) - Local package facts share a topical domain. Shared terms: cli, game, games, ncurses, terminal.

## Combined YAML source

View the package source record on GitHub. [combined/nsnake.yml](https://github.com/automic-vault/db/blob/main/combined/nsnake.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
