macOS
brew install newtlocal Homebrew formula metadata
安装
brew install newtlocal Homebrew formula metadata
sudo apk add newtAlpine Linux edge package indexes · newt · 来源: dl-cdn.alpinelinux.org
sudo dnf install newtFedora Rawhide package metadata · newt · 来源: dl.fedoraproject.org
nix profile install nixpkgs#newtnixpkgs package indexes · pkgs/by-name/ne/newt/package.nix · 来源: api.github.com
sudo zypper install newtopenSUSE Tumbleweed package metadata · newt · 来源: download.opensuse.org
sudo apt install libnewt-devDebian stable package indexes · libnewt-dev · 来源: deb.debian.org
概览
Library for color text mode, widget based user interfaces
历史
Newt is a Red Hat-origin text-mode widget library built on S-Lang. It provides stacked windows, entry widgets, checkboxes, radio buttons, labels, text fields, scrollbars, and related primitives for terminal user interfaces. The Homebrew package also exposes whiptail, the shell-friendly dialog-box command built on top of newt.
Newt is old Unix/Linux installer plumbing. The upstream README carries Red Hat copyright from 1996 through 2016 and describes the library as a color text-mode widget toolkit based on S-Lang. The long 0.52.x changelog is mostly maintenance: Python binding updates, whiptail layout fixes, translations, compiler fixes, memory-safety fixes, pkg-config support, macOS build fixes, and distribution patch integration.
Whiptail's man page frames the user-facing command: it lets shell scripts present yes/no, menu, input, message, checklist, radiolist, gauge, password, and other dialog boxes. That makes newt less visible than ncurses or dialog, but very sticky in installers, rescue flows, and scripts that inherited whiptail behavior.
Newt's adoption came through operating-system tooling rather than developer fashion. It is packaged by Linux distributions and BSD ports because installers, scripts, and legacy admin tools need a small text UI stack. Debian and related systems also preserve whiptail compatibility for scripts that expect dialog-like behavior.
Homebrew analytics reported 247 installs in 30 days, 920 in 90 days, and 3,858 in 365 days for the formula when queried on July 1, 2026. For macOS, this is usually dependency or script compatibility usage rather than developers choosing newt for a new greenfield TUI.
Package nerds usually encounter newt indirectly: a dependency needs libnewt, or an installer script invokes whiptail. Direct users write C against libnewt, Python against snack bindings where available, or shell scripts against whiptail when they want dialog boxes without depending on a full GUI.
The practical caution is compatibility. whiptail resembles dialog but is not identical, and scripts often rely on exact option support, output file descriptors, menu formatting, and terminal behavior. That is why small changelog entries about automatic width, unicode, --notags, --noitem, gauges, and resizing matter.
Newt is infrastructure glue: old, unglamorous, and still packaged because deleting it breaks installers and shell scripts. In av.db it is important mainly because the executable surface is whiptail and the library is likely a transitive dependency.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
whiptail | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:newt |
|---|---|
| 版本 | 0.52.25 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/newt |
| 主页 | https://pagure.io/newt |
| 仓库 | https://pagure.io/newt |
| 上游文档 | https://pagure.io/newt |
| 许可证 | LGPL-2.0-or-later |
| 源码归档 | https://releases.pagure.org/newt/newt-0.52.25.tar.gz |
| 依赖 | gettext, popt, python@3.14, s-lang |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | newt |
| Version Scheme | 0 |
| Revision | 1 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
libnewt-dev 0.52.25-1
Developer's toolkit for newt windowing library
sudo apt install libnewt-devlibnewt-pic 0.52.25-1
Not Erik's Windowing Toolkit, shared library subset kit
sudo apt install libnewt-piclibnewt0.52 0.52.25-1
Not Erik's Windowing Toolkit - text mode windowing with slang
sudo apt install libnewt0.52newt-tcl 0.52.25-1
NEWT module for Tcl
sudo apt install newt-tclpython3-newt 0.52.25-1
NEWT module for Python3
sudo apt install python3-newtwhiptail 0.52.25-1
Displays user-friendly dialog boxes from shell scripts
sudo apt install whiptailnewt
nix profile install nixpkgs#newtlibnewt-dev 0.52.24-2ubuntu2
Developer's toolkit for newt windowing library
sudo apt install libnewt-devlibnewt-pic 0.52.24-2ubuntu2
Not Erik's Windowing Toolkit, shared library subset kit
sudo apt install libnewt-piclibnewt0.52 0.52.24-2ubuntu2
Not Erik's Windowing Toolkit - text mode windowing with slang
sudo apt install libnewt0.52newt-tcl 0.52.24-2ubuntu2
NEWT module for Tcl
sudo apt install newt-tclpython3-newt 0.52.24-2ubuntu2
NEWT module for Python3
sudo apt install python3-newtwhiptail 0.52.24-2ubuntu2
Displays user-friendly dialog boxes from shell scripts
sudo apt install whiptailnewt 0.52.25-r1
Redhat's Newt windowing toolkit development files
sudo apk add newtnewt-dev 0.52.25-r1
Redhat's Newt windowing toolkit development files (development files)
sudo apk add newt-devnewt-doc 0.52.25-r1
Redhat's Newt windowing toolkit development files (documentation)
sudo apk add newt-doc来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.