# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, apt, zypper 安装 ncurses

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

## 安装

```sh
sudo av install brew:ncurses
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ncurses
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install ncurses
```

  证据: MacPorts ports tree: devel/ncurses/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add ncurses
```

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

- dnf (92%):

```sh
sudo dnf install ncurses
```

  证据: Fedora Rawhide package metadata: ncurses from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#ncurses
```

  证据: nixpkgs package indexes: ncurses from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S ncurses
```

  证据: Arch Linux sync databases: ncurses from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- Debian apt (92%):

```sh
sudo apt install lib32ncurses-dev
```

  证据: Debian stable package indexes: lib32ncurses-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- zypper (92%):

```sh
sudo zypper install libncurses5
```

  证据: openSUSE Tumbleweed package metadata: libncurses5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:ncurses
- **软件包管理器:** Homebrew
- **版本:** 6.6
- **来源摘要:** Text-based UI library
- **主页:** <https://invisible-island.net/ncurses/announce.html>
- **最后更新:** 2026-07-18T20:27:11-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- captoinfo (别名)
- clear (别名)
- infocmp (别名)
- infotocap (别名)
- ncurses6-config (别名)
- ncursesw6-config (别名)
- reset (别名)
- tabs (别名)
- tic (别名)
- toe (别名)
- tput (别名)
- tset (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 6.6
## 项目历史与用法

ncurses, short for new curses, is the dominant free curses implementation for building text user interfaces on character-cell terminals. It emulates and extends System V Release 4 curses, uses terminfo, and ships both libraries and utilities such as tic, infocmp, tput, clear, reset, tabs, toe, and tset.

### 项目历史

The lineage runs through earlier curses and pcurses work. Thomas Dickey's ncurses licensing history discusses ncurses 0.7.2 from May 22, 1993 and ncurses 1.8.1 from November 5, 1993, with Pavel Curtis and Zeyd Ben-Halim copyright lineage. Dickey's history also identifies ncurses 1.9.9e on March 24, 1996 as the end of Zeyd Ben-Halim's maintainership and April 6, 1996 as Dickey's first patch against his ncurses archive.

### 采用历史

The ncurses 6.4 announcement says that in mid-June 1995 the maintainer of 4.4BSD curses declared it obsolete and encouraged BSD-family systems to switch to ncurses. The same announcement describes ncurses as used in almost every Linux-kernel-based system aside from some embedded applications, as the system curses library on OpenBSD, FreeBSD, and macOS, and in environments such as Cygwin and MinGW.

### 使用方式

Package users depend on ncurses both directly and indirectly. Developers link libncurses, libpanel, libmenu, and libform for full-screen terminal apps; shell scripts use tput and reset; terminfo maintainers use tic and infocmp; and many interactive CLI tools pull it in through readline-like or TUI dependencies.

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

ncurses is foundational packaging infrastructure. It is small enough to feel mundane, but it sits under installers, text editors, terminal multiplexers, system configuration tools, roguelikes, debuggers, and countless TUIs. ABI variants, wide-character builds, terminfo database paths, and compatibility with system curses make it a perennial packaging concern.

### 时间线

- May 22, 1993: ncurses 0.7.2 appears in Thomas Dickey's reconstructed licensing history.
- November 5, 1993: ncurses 1.8.1 release documented in the same history.
- Mid-June 1995: 4.4BSD curses maintainer encourages switching to ncurses.
- March 24, 1996: ncurses 1.9.9e marks the end of Zeyd Ben-Halim's maintainership.
- April 6, 1996: Thomas Dickey begins patching his ncurses archive.
- December 31, 2022: ncurses 6.4 released, with the announcement summarizing its broad OS adoption.

### Related projects

- curses, pcurses, PDCurses, terminfo, termcap, X/Open Curses, BSD curses, GNU Screen, terminal UI applications

### 来源

- <https://formulae.brew.sh/formula/ncurses>
- <https://github.com/ThomasDickey/ncurses-snapshots>
- <https://invisible-island.net/ncurses/>
- <https://invisible-island.net/ncurses/ncurses-license.html>
- <https://lists.gnu.org/archive/html/info-gnu/2022-12/msg00010.html>


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 其他软件包管理器记录

- Debian apt - lib32ncurses-dev - 6.5+20250216-2: normalized package name match | Debian stable package indexes: lib32ncurses-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | developer's libraries for ncurses (32-bit) | https://invisible-island.net/ncurses/
- Debian apt - lib32ncurses6 - 6.5+20250216-2: normalized package name match | Debian stable package indexes: lib32ncurses6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared libraries for terminal handling (32-bit) | https://invisible-island.net/ncurses/
- Debian apt - lib32ncursesw6 - 6.5+20250216-2: normalized package name match | Debian stable package indexes: lib32ncursesw6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared libraries for terminal handling (wide character support) (32-bit) | https://invisible-island.net/ncurses/
- Debian apt - lib32tinfo6 - 6.5+20250216-2: normalized package name match | Debian stable package indexes: lib32tinfo6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared low-level terminfo library for terminal handling (32-bit) | https://invisible-island.net/ncurses/
- Debian apt - libncurses-dev - 6.5+20250216-2: normalized package name match | Debian stable package indexes: libncurses-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | developer's libraries for ncurses | https://invisible-island.net/ncurses/
- Debian apt - libncurses6 - 6.5+20250216-2: normalized package name match | Debian stable package indexes: libncurses6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared libraries for terminal handling | https://invisible-island.net/ncurses/
- Debian apt - libncursesw6 - 6.5+20250216-2: normalized package name match | Debian stable package indexes: libncursesw6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared libraries for terminal handling (wide character support) | https://invisible-island.net/ncurses/
- Debian apt - libtinfo6 - 6.5+20250216-2: normalized package name match | Debian stable package indexes: libtinfo6 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | shared low-level terminfo library for terminal handling | https://invisible-island.net/ncurses/
- Debian apt - ncurses-base - 6.5+20250216-2: normalized package name match | Debian stable package indexes: ncurses-base from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | basic terminal type definitions | https://invisible-island.net/ncurses/
- Debian apt - ncurses-bin - 6.5+20250216-2: normalized package name match | Debian stable package indexes: ncurses-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | terminal-related programs and man pages | https://invisible-island.net/ncurses/
- Debian apt - ncurses-doc - 6.5+20250216-2: normalized package name match | Debian stable package indexes: ncurses-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | developer's guide and documentation for ncurses | https://invisible-island.net/ncurses/
- Debian apt - ncurses-examples - 6.5+20250216-2: normalized package name match | Debian stable package indexes: ncurses-examples from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | test programs and examples for ncurses | https://invisible-island.net/ncurses/
- Debian apt - ncurses-term - 6.5+20250216-2: normalized package name match | Debian stable package indexes: ncurses-term from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | additional terminal type definitions | https://invisible-island.net/ncurses/
- Nix - ncurses: normalized package name match | nixpkgs package indexes: ncurses from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - lib32ncurses-dev - 6.4+20240113-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: lib32ncurses-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | developer's libraries for ncurses (32-bit) | https://invisible-island.net/ncurses/
- Ubuntu apt - lib32ncurses6 - 6.4+20240113-1ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: lib32ncurses6 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | shared libraries for terminal handling (32-bit) | https://invisible-island.net/ncurses/


## Combined YAML source

View the package source record on GitHub. [combined/ncurses.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ncurses.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
