macOS
brew install nanolocal Homebrew formula metadata
sudo port install nanoMacPorts ports tree · editors/nano/Portfile · 来源: api.github.com
安装
brew install nanolocal Homebrew formula metadata
sudo port install nanoMacPorts ports tree · editors/nano/Portfile · 来源: api.github.com
sudo apk add nanoAlpine Linux edge package indexes · nano · 来源: dl-cdn.alpinelinux.org
sudo dnf install nanoFedora Rawhide package metadata · nano · 来源: dl.fedoraproject.org
nix profile install nixpkgs#nanonixpkgs package indexes · pkgs/by-name/na/nano/package.nix · 来源: api.github.com
sudo pacman -S nanoArch Linux sync databases · nano · 来源: geo.mirror.pkgbuild.com
sudo zypper install nanoopenSUSE Tumbleweed package metadata · nano · 来源: download.opensuse.org
choco install nanoChocolatey community package catalog · nano · 来源: community.chocolatey.org
scoop install main/nanoScoop official bucket manifest trees · bucket/nano.json · 来源: api.github.com
winget install --id GNU.Nano -eWindows Package Manager source index · GNU.Nano · 来源: cdn.winget.microsoft.com
概览
Free (GNU) replacement for the Pico text editor
历史
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.
安全态势
generalized runtime or code generation signal.
yellow 风险 · 中 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
/etc/nanorc~/.nanorc$XDG_CONFIG_HOME/nano/nanorc~/.config/nano/nanorc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
nano | cli | 全局可执行文件 | |
rnano | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | 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 |
| Pulse | updated |
| 依赖 | 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 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
nano 8.4-1+deb13u1
small, friendly text editor inspired by Pico
sudo apt install nanonano-tiny 8.4-1+deb13u1
small, friendly text editor inspired by Pico - tiny build
sudo apt install nano-tinynano
nix profile install nixpkgs#nanonano 7.2-2build1
small, friendly text editor inspired by Pico
sudo apt install nanonano-tiny 7.2-2build1
small, friendly text editor inspired by Pico - tiny build
sudo apt install nano-tinynano 9.0-r0
Enhanced clone of the Pico text editor
sudo apk add nanonano-doc 9.0-r0
Enhanced clone of the Pico text editor (documentation)
sudo apk add nano-docnano-syntax 9.0-r0
Syntax highlighting definitions for nano
sudo apk add nano-syntaxdefault-editor 9.0-2.fc45
Metapackage for DNF group
sudo dnf install default-editornano 9.0-2.fc45
A small text editor
sudo dnf install nanonano-default-editor 9.0-2.fc45
Sets GNU nano as the default editor
sudo dnf install nano-default-editornano 9.0-1
Pico editor clone with enhancements
sudo pacman -S nanoorbiton-nano 2.74.3-1
Configuration-free text editor and IDE (Nano/Pico Mode)
https://roboticoverlords.org/orbiton/
sudo pacman -S orbiton-nanonano 9.0-2.1
Pico editor clone with enhancements
sudo zypper install nanonano-lang 9.0-2.1
Translations for package nano
sudo zypper install nano-langnano
sudo port install nano来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.