# Install nano with Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, scoop, winget, zypper

Free (GNU) replacement for the Pico text editor. Version 9.1 via Homebrew; verified 2026-06-23.

## Install

```sh
sudo av install brew:nano
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nano
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nano
```

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

### Linux

- apk (92%):

```sh
sudo apk add nano
```

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

- Debian apt (92%):

```sh
sudo apt install nano
```

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

- dnf (92%):

```sh
sudo dnf install default-editor
```

  Evidence: Fedora Rawhide package metadata: default-editor 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#nano
```

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

- pacman (92%):

```sh
sudo pacman -S nano
```

  Evidence: Arch Linux sync databases: nano from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install nano
```

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

### Windows

- Chocolatey (92%):

```sh
choco install nano
```

  Evidence: Chocolatey community package catalog: nano from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','ms-reportviewer2015'

- Scoop (92%):

```sh
scoop install main/nano
```

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

- winget (92%):

```sh
winget install --id GNU.Nano -e
```

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

## Package facts

- **Package key:** brew:nano
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nano>
- **Version:** 9.1
- **Source summary:** Free (GNU) replacement for the Pico text editor
- **Homepage:** <https://www.nano-editor.org/>
- **Repository:** <https://git.savannah.gnu.org/git/nano.git>
- **Upstream docs:** <https://www.nano-editor.org/dist/latest/nano.html>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://www.nano-editor.org/dist/v9/nano-9.1.tar.xz>
- **Last updated:** 2026-06-23T08:31:13Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- nano (cli)
- rnano (cli)
- nano (alias)
- rnano (alias)

## Dependencies

- gettext
- ncurses

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Caveats: A sample configuration file is available at $HOMEBREW_PREFIX/share/doc/nano/sample.nanorc See `man nanorc` for more information.
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 9.1
- Package-manager updated: 2026-06-23
- Local data: ok
- Upstream repository: https://www.nano-editor.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GNU nano is the small, friendly terminal text editor that began as a free replacement for Pico and became a default-ish editor across Unix-like systems.

### Project history

nano began in late 1999 when Chris Allegretta created TIP to provide a free software replacement for Pico, the editor bundled with the University of Washington's Pine mail client. The old nano FAQ says Debian's free-software standards kept Pine/Pico binaries out, leaving users who liked Pico's interface without a fully free package.

The name changed from TIP to nano on 2000-01-10 to avoid conflict with the existing Unix `tip` utility, and nano joined the GNU Project in February 2001. The project kept Pico's approachable modeless interface while adding capabilities that accumulated over time: regular-expression search, syntax highlighting, `.nanorc`, multiple buffers, UTF-8, undo/redo, line numbers, soft wrapping, file locking, and more.

### Adoption history

nano's adoption story is practical rather than flashy: it became the editor many distributions could ship when they wanted a Pico-like, GPL-compatible terminal editor for beginners and recovery shells. Its interface exposed common commands at the bottom of the screen, which made it friendlier than modal editors for quick edits to config files.

Homebrew's formula page consulted on 2026-07-01 listed nano 9.1 and 39,145 installs over the prior 365 days, far above the other packages in this batch. That Mac/Linuxbrew usage reflects its role as a familiar terminal editor even on systems that already ship another editor.

### How it is used

The manual describes the normal invocation as `nano [FILE]`, with optional line/column positioning, search-on-open, stdin editing via `nano -`, and configuration through nanorc files. Users edit directly because nano is modeless; control and meta key combinations handle save, exit, search, replace, cut, paste, help, and other commands.

Package nerds install nano for quick config edits, container images, remote shells, rescue environments, and scripts or docs that need an editor nearly anyone can operate. The restricted `rnano` binary is useful when an environment wants to limit file access and shell escapes.

### Why package nerds care

nano is significant because it solves the packaging and UX problem Pico could not: a small, libre, approachable terminal editor with few dependencies. It is the editor people install when 'just open the file and save it' matters more than an editor culture war.

### Timeline

- Late 1999: Chris Allegretta creates TIP as a free Pico replacement.
- 2000-01-10: TIP is renamed nano.
- 2001-02: nano becomes part of the GNU Project.
- 2007: nano switches to GPL-3.0-or-later licensing in the 2.0.7 era.
- 2026-06-23: nano homepage lists latest version 9.1.
- 2026-07-01: Homebrew Formulae page listed 39,145 installs over the prior 365 days.

### Related projects

- Pico
- Pine
- GNU Project
- ncurses

### Sources

- <https://formulae.brew.sh/formula/nano>
- <https://www.nano-editor.org/>
- <https://www.nano-editor.org/dist/latest/nano.html>
- <https://www.nano-editor.org/dist/v2.2/faq.html>
- <https://www.nano-editor.org/history.php>


## Security Notes

generalized runtime or code generation signal.

- **Geiger risk:** yellow / medium
- generalized runtime or code generation signal


## 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: /etc/nanorc, ~/.nanorc, $XDG_CONFIG_HOME/nano/nanorc, ~/.config/nano/nanorc
## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nano
- **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 - nano - 8.4-1+deb13u1: normalized package name match | Debian stable package indexes: nano from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | small, friendly text editor inspired by Pico | https://www.nano-editor.org/
- Debian apt - nano-tiny - 8.4-1+deb13u1: normalized package name match | Debian stable package indexes: nano-tiny from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | small, friendly text editor inspired by Pico - tiny build | https://www.nano-editor.org/
- Nix - nano: normalized package name match | nixpkgs package indexes: pkgs/by-name/na/nano/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - nano - 7.2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: nano from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | small, friendly text editor inspired by Pico | https://www.nano-editor.org/
- Ubuntu apt - nano-tiny - 7.2-2build1: normalized package name match | Ubuntu 24.04 LTS package indexes: nano-tiny from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | small, friendly text editor inspired by Pico - tiny build | https://www.nano-editor.org/
- apk - nano - 9.0-r0: normalized package name match | Alpine Linux edge package indexes: nano from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Enhanced clone of the Pico text editor | https://www.nano-editor.org/
- apk - nano-doc - 9.0-r0: normalized package name match | Alpine Linux edge package indexes: nano-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Enhanced clone of the Pico text editor (documentation) | https://www.nano-editor.org/
- apk - nano-syntax - 9.0-r0: normalized package name match | Alpine Linux edge package indexes: nano-syntax from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Syntax highlighting definitions for nano | https://www.nano-editor.org/
- dnf - default-editor - 9.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: default-editor from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Metapackage for DNF group | https://www.nano-editor.org
- dnf - nano - 9.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: nano from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A small text editor | https://www.nano-editor.org
- dnf - nano-default-editor - 9.0-2.fc45: normalized package name match | Fedora Rawhide package metadata: nano-default-editor from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Sets GNU nano as the default editor | https://www.nano-editor.org
- pacman - nano - 9.0-1: normalized package name match | Arch Linux sync databases: nano from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz | Pico editor clone with enhancements | https://www.nano-editor.org
- pacman - orbiton-nano - 2.74.3-1: normalized package name match | Arch Linux sync databases: orbiton-nano from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Configuration-free text editor and IDE (Nano/Pico Mode) | https://roboticoverlords.org/orbiton/
- zypper - nano - 9.0-2.1: normalized package name match | openSUSE Tumbleweed package metadata: nano from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Pico editor clone with enhancements | https://nano-editor.org/
- zypper - nano-lang - 9.0-2.1: normalized package name match | openSUSE Tumbleweed package metadata: nano-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Translations for package nano | https://nano-editor.org/
- MacPorts - nano: normalized package name match | MacPorts ports tree: editors/nano/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [ncurses](https://www.automicvault.com/pkg/brew/ncurses/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [ex-vi](https://www.automicvault.com/pkg/brew/ex-vi/) - Shares av.db curated category or tags: cli, developer-tools, terminal, text-editor.
- [micro](https://www.automicvault.com/pkg/brew/micro/) - Shares av.db curated category or tags: cli, developer-tools, terminal, text-editor.
- [msedit](https://www.automicvault.com/pkg/brew/msedit/) - Shares av.db curated category or tags: cli, developer-tools, terminal, text-editor.
- [orbiton](https://www.automicvault.com/pkg/brew/orbiton/) - Shares av.db curated category or tags: cli, developer-tools, terminal, text-editor.
- [jed](https://www.automicvault.com/pkg/brew/jed/) - Shares av.db curated category or tags: cli, developer-tools, text-editor.
- [kakoune](https://www.automicvault.com/pkg/brew/kakoune/) - Shares av.db curated category or tags: cli, developer-tools, text-editor.
- [ed](https://www.automicvault.com/pkg/brew/ed/) - Shares av.db curated category or tags: cli, developer-tools, gnu, text-editor.
- [macvim](https://www.automicvault.com/pkg/brew/macvim/) - Shares av.db curated category or tags: cli, developer-tools, text-editor.
- [enscript](https://www.automicvault.com/pkg/brew/enscript/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gettext, gnu.
- [gawk](https://www.automicvault.com/pkg/brew/gawk/) - Local package facts share a topical domain. Shared terms: cli, developer, developer-tools, gettext, gnu.

## Combined YAML source

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