Automic VaultAutomic Vault

brew

使用 Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, winget 安装 nano

查看 nano 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install nano

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install nano

MacPorts ports tree · editors/nano/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add nano

Alpine Linux edge package indexes · nano · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install nano

Debian stable package indexes · nano · 来源: deb.debian.org

Fedora dnf已验证 · 92%
sudo dnf install nano

Fedora Rawhide package metadata · nano · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#nano

nixpkgs package indexes · pkgs/by-name/na/nano/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S nano

Arch Linux sync databases · nano · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install nano

openSUSE Tumbleweed package metadata · nano · 来源: download.opensuse.org

概览

软件包摘要

Free (GNU) replacement for the Pico text editor

命令和别名

  • nano
  • rnano

历史

项目历史与用法

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.

项目历史

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.

采用历史

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.

使用方式

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.

为什么软件包爱好者会关心

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.

时间线

  • 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

安全态势

风险级别:yellow

generalized runtime or code generation signal.

风险分类器

yellow 风险 · 中 置信度 · runtime

原因

  • generalized runtime or code generation signal

信号

  • text:repl

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 安装时包含 2 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

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

Config paths the tool may read or write during local use.

Unix
/etc/nanorc~/.nanorc$XDG_CONFIG_HOME/nano/nanorc~/.config/nano/nanorc

可执行文件

已安装的可执行文件

命令类型暴露范围备注
nanocli全局可执行文件
rnanocli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本9.1
管理器更新时间2026-06-23
本地数据OK
上游not checked
检测到的最新版本未检测到

https://www.nano-editor.org/

安装元数据

软件包元数据

软件包键brew:nano
版本9.1
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/nano
主页https://www.nano-editor.org/
仓库https://git.savannah.gnu.org/git/nano.git
上游文档https://www.nano-editor.org/dist/latest/nano.html
许可证GPL-3.0-or-later
源码归档https://www.nano-editor.org/dist/v9/nano-9.1.tar.xz
最后更新2026-06-23T08:31:13Z
Pulseupdated
依赖gettext, ncurses
构建依赖pkgconf
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明
注意事项A sample configuration file is available at $HOMEBREW_PREFIX/share/doc/nano/sample.nanorc See `man nanorc` for more information.

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namenano
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

nano 8.4-1+deb13u1

small, friendly text editor inspired by Pico

https://www.nano-editor.org/

sudo apt install nano
  • Section: editors
  • Architecture: amd64
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nano
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nano from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

nano-tiny 8.4-1+deb13u1

small, friendly text editor inspired by Pico - tiny build

https://www.nano-editor.org/

sudo apt install nano-tiny
  • Section: editors
  • Architecture: amd64
  • Source Package: nano
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nano
Debian stable package indexes · deb.debian.org · Debian stable package indexes: nano-tiny from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

nano

nix profile install nixpkgs#nano
  • normalized package name match
  • 匹配方式:Nano
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/na/nano/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

nano 7.2-2build1

small, friendly text editor inspired by Pico

https://www.nano-editor.org/

sudo apt install nano
  • Section: editors
  • Architecture: amd64
  • 3 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Nano
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nano from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz
Ubuntu apt95%

nano-tiny 7.2-2build1

small, friendly text editor inspired by Pico - tiny build

https://www.nano-editor.org/

sudo apt install nano-tiny
  • Section: universe/editors
  • Architecture: amd64
  • Source Package: nano
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nano
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: nano-tiny from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

nano 9.0-r0

Enhanced clone of the Pico text editor

https://www.nano-editor.org/

sudo apk add nano
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nano
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nano
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nano from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nano-doc 9.0-r0

Enhanced clone of the Pico text editor (documentation)

https://www.nano-editor.org/

sudo apk add nano-doc
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nano
  • normalized package name match
  • 匹配方式:Nano
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nano-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

nano-syntax 9.0-r0

Syntax highlighting definitions for nano

https://www.nano-editor.org/

sudo apk add nano-syntax
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • Source Package: nano
  • 1 依赖
  • normalized package name match
  • 匹配方式:Nano
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: nano-syntax from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

default-editor 9.0-2.fc45

Metapackage for DNF group

https://www.nano-editor.org

sudo dnf install default-editor
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: nano
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nano
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
dnf95%

nano 9.0-2.fc45

A small text editor

https://www.nano-editor.org

sudo dnf install nano
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: nano
  • 5 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nano
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: nano from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

nano-default-editor 9.0-2.fc45

Sets GNU nano as the default editor

https://www.nano-editor.org

sudo dnf install nano-default-editor
  • License: GPL-3.0-or-later
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: nano
  • 1 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Nano
Fedora Rawhide package metadata · dl.fedoraproject.org · 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
pacman95%

nano 9.0-1

Pico editor clone with enhancements

https://www.nano-editor.org

sudo pacman -S nano
  • License: GPL-3.0-or-later
  • Architecture: x86_64
  • 3 依赖
  • normalized package name match
  • 匹配方式:Nano
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: nano from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz
pacman95%

orbiton-nano 2.74.3-1

Configuration-free text editor and IDE (Nano/Pico Mode)

https://roboticoverlords.org/orbiton/

sudo pacman -S orbiton-nano
  • License: BSD-3-Clause
  • Architecture: x86_64
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Nano
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: orbiton-nano from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

nano 9.0-2.1

Pico editor clone with enhancements

https://nano-editor.org/

sudo zypper install nano
  • License: GPL-3.0-or-later
  • Category: Productivity/Text/Editors
  • Architecture: x86_64
  • Source Package: nano
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Nano
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: nano from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

nano-lang 9.0-2.1

Translations for package nano

https://nano-editor.org/

sudo zypper install nano-lang
  • License: GPL-3.0-or-later
  • Category: System/Localization
  • Architecture: noarch
  • Source Package: nano
  • 1 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Nano
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: nano-lang from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

nano

sudo port install nano
  • normalized package name match
  • 匹配方式:Nano
MacPorts ports tree · api.github.com · MacPorts ports tree: editors/nano/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment