Packages / nano
APT repository · deb.freshdeb.com/nano
nano
GNU nano, the small and friendly text editor, with syntax highlighting, multiple buffers, undo and search and replace with regular expressions. One release line for Debian 12 and 13, Ubuntu 22.04, 24.04 and 26.04 on amd64 and arm64.
Componentmain
follows every upstream release, minors and majors included. Currently 9.3.
Not published yet. The first nano release is being built. These commands will work once it lands at deb.freshdeb.com/nano; the versions shown are the ones package.yaml will publish.
1Trust the signing key (once per machine)
sudo install -d -m 0755 /etc/apt/keyrings curl -fsSL https://deb.freshdeb.com/freshdeb-archive-keyring.gpg \ | sudo tee /etc/apt/keyrings/freshdeb-archive-keyring.gpg >/dev/null
Fingerprint 3BBD F03A 9C0B F890 F8CA 9510 7595 CC55 468F 3161. How to verify.
2Add the source
sudo tee /etc/apt/sources.list.d/freshdeb-nano.sources >/dev/null <<EOF
Types: deb
URIs: https://deb.freshdeb.com/nano
Suites: $(. /etc/os-release && echo $VERSION_CODENAME)
Components: main
Signed-By: /etc/apt/keyrings/freshdeb-archive-keyring.gpg
EOFWith auto, the shell reads the codename from /etc/os-release on the machine you paste this into.
3Install
sudo apt update && sudo apt install nano
apt policy nano # expect 9.3-1+freshdeb~…Before you upgrade from the distribution's nano
The freshdeb version sorts higher, so apt upgrade moves you over in place. Some keys changed since the distributions' versions. Since 8.0, ^F and ^B search forward and backward instead of moving the cursor, and ^L cycles the current line through the screen; 9.0 dropped M-< and M-> for switching files and the ^T toggle in WhereIs. Lines to restore the old bindings in ~/.nanorc are in the package's NEWS entry, shown by apt-listchanges, and in /usr/share/doc/nano/examples/sample.nanorc.
Compared with Debian's package
Debian's packaging decides where things go: package names, paths, users, services and how upgrades behave. The build follows upstream's own release builds wherever Debian's differs.
- Build
- Debian's packaging, from GNU's signed release tarball. It patches nothing upstream. The overlays only let it build with the releases' debhelper and add a NEWS entry on the changed keys.
- Variants
nano, the full editor, andnano-tiny, a minimal build without syntax highlighting or nanorc files. Debian's installer package isn't built.- Layout
- Debian's:
/etc/nanorc, the syntax files in/usr/share/nano, and nano as aneditoralternative.
Packing list
Every release line of nano and the distributions it's built for. Each line is its own APT component and only gets the releases it follows (main: every upstream release, minors and majors included). After upstream end of life it stops building but stays installable. Hatched cells have no build: usually that distribution already ships the same or a newer version itself.
| Line | Component | Current | bookwormDebian 12 | trixieDebian 13 | jammyUbuntu 22.04 | nobleUbuntu 24.04 | resoluteUbuntu 26.04 | Support |
|---|---|---|---|---|---|---|---|---|
| main | main | 9.3 | built: 9.3-1 | built: 9.3-1 | built: 9.3-1 | built: 9.3-1 | built: 9.3-1 | – |
Versions follow <upstream>-<revision>+freshdeb~<distro>, distro being deb12, deb13, ubuntu22.04, ubuntu24.04 or ubuntu26.04, for amd64 and arm64. Published versions are never rebuilt or replaced.
Contents
- nano
- The editor.
- nano-tiny
- A minimal build, without syntax highlighting or nanorc files.
Origin
- Upstream
- git.savannah.gnu.org/git/nanorelease tags pinned to commit hashes, built from the checksummed release tarball
- Debian packaging
- salsa.debian.org/debian/nanoimported unmodified at 1b02da7 (9.3-1, unstable)
- Our changes
- overlays under
overlays/for bookworm, trixie, jammy, noble, resolute. - Built for
- bookworm, trixie, jammy, noble, resoluteamd64, arm64, built natively
- Files
- package.yaml · debian/ · report an issuepackage.yaml explains every change
Also in Developer tools
- composer2.10.3Dependency manager for PHP, as upstream's composer.pharmain
- forgejo17.0.1Self-hosted software forge: Git hosting, code review and CImainlts
- git2.56.0Distributed version control systemmain
- golang1.27.3Go compiler and tools, as the default go, one line per supported minor1.27latest1.26
- lazygit0.66.2Terminal UI for git commandsmain
- neovim0.12.6Vim-based text editor, with its bundled LuaJIT and tree-sitter parsersmain