macOS
brew install zenitylocal Homebrew formula metadata
sudo port install zenityMacPorts ports tree · gnome/zenity/Portfile · 来源: api.github.com
安装
brew install zenitylocal Homebrew formula metadata
sudo port install zenityMacPorts ports tree · gnome/zenity/Portfile · 来源: api.github.com
sudo apk add zenityAlpine Linux edge package indexes · zenity · 来源: dl-cdn.alpinelinux.org
sudo apt install zenityDebian stable package indexes · zenity · 来源: deb.debian.org
sudo dnf install zenityFedora Rawhide package metadata · zenity · 来源: dl.fedoraproject.org
nix profile install nixpkgs#zenitynixpkgs package indexes · pkgs/by-name/ze/zenity/package.nix · 来源: api.github.com
sudo pacman -S zenityArch Linux sync databases · zenity · 来源: geo.mirror.pkgbuild.com
sudo zypper install zenityopenSUSE Tumbleweed package metadata · zenity · 来源: download.opensuse.org
概览
GTK+ dialog boxes for the command-line
历史
Zenity is GNOME's command-line bridge to GTK dialogs, letting shell scripts and other CLI workflows ask users questions, show progress, choose files, and display desktop notifications without writing a full graphical application.
Zenity descends from GNOME's `gdialog` lineage. The GNOME README calls it the GNOME port of the venerable `dialog` program, while older BLFS documentation for Zenity 2.6.2 described it as a rewrite of gdialog, itself the GNOME port of dialog for displaying GTK+ dialog boxes from command-line scripts.
The old GNOME 2 era packaging already shipped both `gdialog` and `zenity`, with `gdialog` kept as a wrapper for legacy scripts. The modern repository still carries that role forward but has moved with the GNOME platform: the README identifies Zenity as part of GNOME Extra Apps and lists GTK 4 and libadwaita as current dependencies.
Because its purpose is deliberately small, Zenity has stayed stable in concept for decades: a CLI command that turns script state into desktop UI. Its evolution is mostly GNOME toolkit migration, option compatibility, and the set of supported dialog types.
Zenity became widely adopted because it solved a packaging and scripting problem that neither pure terminal tools nor full GUI frameworks solved cleanly: a shell script could request desktop input using a standard GNOME/GTK utility. That made it attractive for installers, admin scripts, small desktop helpers, and distribution glue.
The supplied package data shows Zenity available across Homebrew, Debian, Ubuntu, Fedora, Alpine, MacPorts, Nix, Arch, and openSUSE-family packaging. That breadth reflects both its age and its continued usefulness as a tiny dependency for desktop-facing shell workflows.
Common usage is direct from shell scripts: `zenity --info`, `--warning`, `--question`, `--entry`, `--file-selection`, `--progress`, `--list`, `--calendar`, and similar options show GTK dialogs and return either exit status or selected/input data to stdout.
Zenity is especially useful where a package maintainer or script author wants a lightweight graphical prompt without adding a bespoke GUI. It is less useful on headless systems or non-GTK desktop environments unless the needed display and runtime stack are present.
Zenity is a classic package-nerd utility because it sits at the boundary between CLI automation and desktop integration. It is often installed not because users launch it directly, but because scripts and packages want a standard, cross-language way to display GTK dialogs.
It is also a reminder that small desktop commands have long compatibility tails. The `gdialog` wrapper, old GNOME 2 documentation, modern GTK/libadwaita migration, and broad distro packaging all show how a tiny CLI can persist as infrastructure.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
zenity | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:zenity |
|---|---|
| 版本 | 4.2.2 |
| 软件包管理器 | Homebrew |
| 主页 | https://gitlab.gnome.org/GNOME/zenity |
| 最后更新 | 2026-07-07T14:59:01Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
zenity 4.1.90-1
Display graphical dialog boxes from shell scripts
https://wiki.gnome.org/Projects/Zenity
sudo apt install zenityzenity-common 4.1.90-1
Display graphical dialog boxes from shell scripts (common files)
https://wiki.gnome.org/Projects/Zenity
sudo apt install zenity-commonzenity
nix profile install nixpkgs#zenityzenity 4.0.1-1build3
Display graphical dialog boxes from shell scripts
https://wiki.gnome.org/Projects/Zenity
sudo apt install zenityzenity-common 4.0.1-1build3
Display graphical dialog boxes from shell scripts (common files)
https://wiki.gnome.org/Projects/Zenity
sudo apt install zenity-commonzenity 4.2.2-r0
Display dialog boxes from the command line and shell scripts
https://gitlab.gnome.org/GNOME/zenity
sudo apk add zenityzenity-dbg 4.2.2-r0
Display dialog boxes from the command line and shell scripts (debug symbols)
https://gitlab.gnome.org/GNOME/zenity
sudo apk add zenity-dbgzenity-doc 4.2.2-r0
Display dialog boxes from the command line and shell scripts (documentation)
https://gitlab.gnome.org/GNOME/zenity
sudo apk add zenity-doczenity-lang 4.2.2-r0
Languages for package zenity
https://gitlab.gnome.org/GNOME/zenity
sudo apk add zenity-langzenity 4.2.2-5.fc45
Display dialog boxes from shell scripts
https://wiki.gnome.org/Projects/Zenity
sudo dnf install zenityzenity 4.2.2-1
Display graphical dialog boxes from shell scripts
https://gitlab.gnome.org/GNOME/zenity
sudo pacman -S zenityzenity 4.2.2-1.4
GNOME Command Line Dialog Utility
https://wiki.gnome.org/Projects/Zenity
sudo zypper install zenityzenity-lang 4.2.2-1.4
Translations for package zenity
https://wiki.gnome.org/Projects/Zenity
sudo zypper install zenity-langzenity
sudo port install zenity来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.