How to Install zenity on CentOS 8 server


I got the error ‘zenity command not found’ on my CentOS 8 server. zenity command is used on Linux servers to display GTK dialogs boxes.

Follow the below steps to download and install zenity package on CentOS 8 server.

bash: zenity: command not found

1. Login to CentOS 8 server via SSH as root user

2. Install zenity using yum or dnf command

3. Enter ‘y’ if yum ask for confirmation while installing zenity

4. Zenity package and the dependencies will be installed

Command to install zenity :

dnf install zenity


yum install zenity


[root@redhat /]# dnf install zenity

Dependencies resolved.
Package Architecture Version Repository Size
zenity x86_64 3.28.1-1.el8 AppStream 4.0 M
Installing dependencies:
abattis-cantarell-fonts noarch 0.0.25-4.el8 AppStream 155 k
adwaita-cursor-theme noarch 3.28.0-2.el8 AppStream 647 k
adwaita-icon-theme noarch 3.28.0-2.el8 AppStream 11 M
at-spi2-atk x86_64 2.26.2-1.el8 AppStream 89 k
at-spi2-core x86_64 2.28.0-1.el8 AppStream 169 k
atk x86_64 2.28.1-1.el8 AppStream 272 k
cairo x86_64 1.15.12-3.el8 AppStream 721 k
cairo-gobject x86_64 1.15.12-3.el8 AppStream 33 k
colord-libs x86_64 1.4.2-1.el8 AppStream 236 k
fribidi x86_64 1.0.4-8.el8 AppStream 89 k
gdk-pixbuf2-modules x86_64 2.36.12-5.el8 AppStream 109 k
graphite2 x86_64 1.3.10-10.el8 AppStream 122 k
gtk-update-icon-cache x86_64 3.22.30-5.el8 AppStream 32 k
gtk3 x86_64 3.22.30-5.el8 AppStream 4.5 M
harfbuzz x86_64 1.7.5-3.el8 AppStream 295 k
hicolor-icon-theme noarch 0.17-2.el8 AppStream 49 k
jasper-libs x86_64 2.0.14-4.el8 AppStream 167 k
jbigkit-libs x86_64 2.1-14.el8 AppStream 55 k
lcms2 x86_64 2.9-2.el8 AppStream 165 k
libX11 x86_64 1.6.8-3.el8 AppStream 611 k
libX11-common noarch 1.6.8-3.el8 AppStream 158 k
libXau x86_64 1.0.8-13.el8 AppStream 36 k
libXcomposite x86_64 0.4.4-14.el8 AppStream 28 k
libXcursor x86_64 1.1.15-3.el8 AppStream 36 k
libXdamage x86_64 1.1.4-14.el8 AppStream 27 k
libXext x86_64 1.3.3-9.el8 AppStream 45 k
libXfixes x86_64 5.0.3-7.el8 AppStream 25 k
libXft x86_64 2.3.2-10.el8 AppStream 66 k
libXi x86_64 1.7.9-7.el8 AppStream 49 k
libXinerama x86_64 1.1.4-1.el8 AppStream 16 k
libXrandr x86_64 1.5.1-7.el8 AppStream 33 k
libXrender x86_64 0.9.10-7.el8 AppStream 33 k
libXtst x86_64 1.2.3-7.el8 AppStream 22 k
libdatrie x86_64 0.2.9-7.el8 AppStream 33 k
libepoxy x86_64 1.5.3-1.el8 AppStream 225 k
libjpeg-turbo x86_64 1.5.3-10.el8 AppStream 156 k
libnotify x86_64 0.7.7-5.el8 AppStream 47 k
libthai x86_64 0.1.27-2.el8 AppStream 203 k
libtiff x86_64 4.0.9-17.el8 AppStream 188 k
libwayland-client x86_64 1.17.0-1.el8 AppStream 39 k
libwayland-cursor x86_64 1.17.0-1.el8 AppStream 26 k
libwayland-egl x86_64 1.17.0-1.el8 AppStream 19 k
libxcb x86_64 1.13.1-1.el8 AppStream 229 k
pango x86_64 1.42.4-6.el8 AppStream 298 k
pixman x86_64 0.38.4-1.el8 AppStream 257 k
rest x86_64 0.8.1-2.el8 AppStream 70 k
avahi-libs x86_64 0.7-19.el8 BaseOS 62 k
cups-libs x86_64 1:2.2.6-33.el8 BaseOS 432 k
fontconfig x86_64 2.13.1-3.el8 BaseOS 275 k
fontpackages-filesystem noarch 1.44-22.el8 BaseOS 16 k
freetype x86_64 2.9.1-4.el8 BaseOS 393 k
gdk-pixbuf2 x86_64 2.36.12-5.el8 BaseOS 467 k
glib-networking x86_64 2.56.1-1.1.el8 BaseOS 155 k
gsettings-desktop-schemas x86_64 3.32.0-4.el8 BaseOS 632 k
json-glib x86_64 1.4.4-1.el8 BaseOS 144 k
libgusb x86_64 0.3.0-1.el8 BaseOS 49 k
libmodman x86_64 2.0.1-17.el8 BaseOS 36 k
libpng x86_64 2:1.6.34-5.el8 BaseOS 126 k
libproxy x86_64 0.4.15-5.2.el8 BaseOS 75 k
libsoup x86_64 2.62.3-1.el8 BaseOS 424 k
shared-mime-info x86_64 1.9-3.el8 BaseOS 329 k
Installing weak dependencies:
dconf x86_64 0.28.0-3.el8 AppStream 109 k

Transaction Summary
Install 63 Packages

Total download size: 30 M
Installed size: 80 M
Is this ok [y/N]: y


How to Download and install zenity rpm on CentOS 8 server

Step 1. Log into Linux server via SSH as root

Step 2. Download zenity package from CentOS website

Step 3. Run ‘yum install zenity-3.28.1-1.el8.x86_64.rpm’ to install zenity

# wget

# yum install zenity-3.28.1-1.el8.x86_64.rpm


How to Install zenity command CentOS 8 Linux

How to Install zenity command CentOS 8 Linux