Installing X11 packages on Centos 8

I ran into an issue the other day where I wanted to have graphic capabilities remotely available. I wanted to use virt-manager to Normally its just a matter of having X11Forwarding=yes in /etc/ssh/sshd_config and then using “ssh -Y USER@IP_ADDRESS”. This of course was not working and that’s because when I installed these servers they were stripped down and no X11 packages were installed. In previous releases that was easy just install them:

# yum install xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps -y
Last metadata expiration check: 0:39:16 ago on Thu 10 Sep 2020 07:58:13 AM EDT.
No match for argument: xorg-x11-apps
Error: Unable to find a match: xorg-x11-apps

So we have seen this before right, no biggie lets install access to the repo. In 8 however things have changed. Now we have powertools that enable us to install packages such as these. So we need to enable access to this so we can install out X11 packages.

# dnf config-manager --enable PowerTools

If you don't get an error you are good.

Now we can install our packages

# yum install xorg-x11-server-Xorg xorg-x11-xauth xorg-x11-apps -y

CentOS-8 - PowerTools 4.2 MB/s | 1.9 MB 00:00 ALast metadata expiration check: 0:00:01 ago on Thu 10 Sep 2020 08:40:18 AM EDT.
Dependencies resolved.
=================================================================================================================================================== Package Architecture Version Repository Size
===================================================================================================================================================Installing:
xorg-x11-apps x86_64 7.7-21.el8 PowerTools 334 k
xorg-x11-server-Xorg x86_64 1.20.6-3.el8 AppStream 1.5 M
xorg-x11-xauth x86_64 1:1.0.9-12.el8 AppStream 39 k
Installing dependencies:
libXaw x86_64 1.0.13-10.el8 AppStream 194 k
libXdmcp x86_64 1.1.2-11.el8 AppStream 40 k
libXfont2 x86_64 2.0.3-2.el8 AppStream 149 k
libXmu x86_64 1.1.2-12.el8 AppStream 74 k
libXpm x86_64 3.5.12-8.el8 AppStream 58 k
libXt x86_64 1.1.5-12.el8 AppStream 186 k
libevdev x86_64 1.8.0-1.el8 AppStream 43 k
libfontenc x86_64 1.1.3-8.el8 AppStream 37 k
libinput x86_64 1.14.3-1.el8 AppStream 206 k
libwacom x86_64 1.1-2.el8 AppStream 41 k
libwacom-data noarch 1.1-2.el8 AppStream 86 k
libxkbfile x86_64 1.0.9-9.el8 AppStream 86 k
mtdev x86_64 1.1.5-12.el8 AppStream 24 k
xorg-x11-drv-fbdev x86_64 0.5.0-2.el8 AppStream 27 k
xorg-x11-drv-libinput x86_64 0.29.0-1.el8 AppStream 50 k
xorg-x11-drv-vesa x86_64 2.4.0-3.el8 AppStream 31 k
xorg-x11-font-utils x86_64 1:7.5-40.el8 AppStream 103 k
xorg-x11-fonts-misc noarch 7.5-19.el8 AppStream 5.8 M
xorg-x11-server-common x86_64 1.20.6-3.el8 AppStream 41 k
xorg-x11-xbitmaps noarch 1.1.1-13.el8 AppStream 42 k
xorg-x11-xkb-utils x86_64 7.7-27.el8 AppStream 114 k
Transaction Summary
===================================================================================================================================================Install 24 Packages
Total download size: 9.2 M
Installed size: 16 M
Downloading Packages:
(1/24): libXdmcp-1.1.2-11.el8.x86_64.rpm 164 kB/s | 40 kB 00:00
(2/24): libXfont2-2.0.3-2.el8.x86_64.rpm 515 kB/s | 149 kB 00:00
(3/24): libXaw-1.0.13-10.el8.x86_64.rpm 666 kB/s | 194 kB 00:00
(4/24): libXpm-3.5.12-8.el8.x86_64.rpm 1.0 MB/s | 58 kB 00:00
(5/24): libXmu-1.1.2-12.el8.x86_64.rpm 645 kB/s | 74 kB 00:00
(6/24): libXt-1.1.5-12.el8.x86_64.rpm 2.7 MB/s | 186 kB 00:00
(7/24): libevdev-1.8.0-1.el8.x86_64.rpm 744 kB/s | 43 kB 00:00
(8/24): libfontenc-1.1.3-8.el8.x86_64.rpm 578 kB/s | 37 kB 00:00
(9/24): libinput-1.14.3-1.el8.x86_64.rpm 2.0 MB/s | 206 kB 00:00
(10/24): libwacom-1.1-2.el8.x86_64.rpm 646 kB/s | 41 kB 00:00
(11/24): libwacom-data-1.1-2.el8.noarch.rpm 1.4 MB/s | 86 kB 00:00
(12/24): libxkbfile-1.0.9-9.el8.x86_64.rpm 1.4 MB/s | 86 kB 00:00
(13/24): mtdev-1.1.5-12.el8.x86_64.rpm 367 kB/s | 24 kB 00:00
(14/24): xorg-x11-drv-fbdev-0.5.0-2.el8.x86_64.rpm 483 kB/s | 27 kB 00:00
(15/24): xorg-x11-drv-libinput-0.29.0-1.el8.x86_64.rpm 824 kB/s | 50 kB 00:00
(16/24): xorg-x11-drv-vesa-2.4.0-3.el8.x86_64.rpm 508 kB/s | 31 kB 00:00
(17/24): xorg-x11-font-utils-7.5-40.el8.x86_64.rpm 1.7 MB/s | 103 kB 00:00
(18/24): xorg-x11-server-common-1.20.6-3.el8.x86_64.rpm 705 kB/s | 41 kB 00:00
(19/24): xorg-x11-xauth-1.0.9-12.el8.x86_64.rpm 655 kB/s | 39 kB 00:00
(20/24): xorg-x11-xbitmaps-1.1.1-13.el8.noarch.rpm 674 kB/s | 42 kB 00:00
(21/24): xorg-x11-server-Xorg-1.20.6-3.el8.x86_64.rpm 6.0 MB/s | 1.5 MB 00:00
(22/24): xorg-x11-xkb-utils-7.7-27.el8.x86_64.rpm 1.6 MB/s | 114 kB 00:00
(23/24): xorg-x11-fonts-misc-7.5-19.el8.noarch.rpm 14 MB/s | 5.8 MB 00:00
(24/24): xorg-x11-apps-7.7-21.el8.x86_64.rpm 1.7 MB/s | 334 kB 00:00
---------------------------------------------------------------------------------------------------------------------------------------------------Total 7.0 MB/s | 9.2 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libfontenc-1.1.3-8.el8.x86_64 1/24
Installing : libXt-1.1.5-12.el8.x86_64 2/24
Installing : libXmu-1.1.2-12.el8.x86_64 3/24
Installing : libxkbfile-1.0.9-9.el8.x86_64 4/24
Installing : xorg-x11-xkb-utils-7.7-27.el8.x86_64 5/24
Installing : xorg-x11-server-common-1.20.6-3.el8.x86_64 6/24
Installing : libXfont2-2.0.3-2.el8.x86_64 7/24
Installing : xorg-x11-font-utils-1:7.5-40.el8.x86_64 8/24
Installing : xorg-x11-fonts-misc-7.5-19.el8.noarch 9/24
Running scriptlet: xorg-x11-fonts-misc-7.5-19.el8.noarch 9/24
Installing : xorg-x11-xbitmaps-1.1.1-13.el8.noarch 10/24
Installing : mtdev-1.1.5-12.el8.x86_64 11/24
Running scriptlet: mtdev-1.1.5-12.el8.x86_64 11/24
Installing : libwacom-data-1.1-2.el8.noarch 12/24
Installing : libwacom-1.1-2.el8.x86_64 13/24
Installing : libevdev-1.8.0-1.el8.x86_64 14/24
Installing : libinput-1.14.3-1.el8.x86_64 15/24
Running scriptlet: libinput-1.14.3-1.el8.x86_64 15/24
Installing : libXpm-3.5.12-8.el8.x86_64 16/24
Installing : libXaw-1.0.13-10.el8.x86_64 17/24
Installing : libXdmcp-1.1.2-11.el8.x86_64 18/24
Installing : xorg-x11-drv-fbdev-0.5.0-2.el8.x86_64 19/24
Installing : xorg-x11-drv-libinput-0.29.0-1.el8.x86_64 20/24
Installing : xorg-x11-drv-vesa-2.4.0-3.el8.x86_64 21/24
Installing : xorg-x11-server-Xorg-1.20.6-3.el8.x86_64 22/24
Installing : xorg-x11-apps-7.7-21.el8.x86_64 23/24
Installing : xorg-x11-xauth-1:1.0.9-12.el8.x86_64 24/24
Running scriptlet: xorg-x11-xauth-1:1.0.9-12.el8.x86_64 24/24
Verifying : libXaw-1.0.13-10.el8.x86_64 1/24
Verifying : libXdmcp-1.1.2-11.el8.x86_64 2/24
Verifying : libXfont2-2.0.3-2.el8.x86_64 3/24
Verifying : libXmu-1.1.2-12.el8.x86_64 4/24
Verifying : libXpm-3.5.12-8.el8.x86_64 5/24
Verifying : libXt-1.1.5-12.el8.x86_64 6/24
Verifying : libevdev-1.8.0-1.el8.x86_64 7/24
Verifying : libfontenc-1.1.3-8.el8.x86_64 8/24
Verifying : libinput-1.14.3-1.el8.x86_64 9/24
Verifying : libwacom-1.1-2.el8.x86_64 10/24
Verifying : libwacom-data-1.1-2.el8.noarch 11/24
Verifying : libxkbfile-1.0.9-9.el8.x86_64 12/24
Verifying : mtdev-1.1.5-12.el8.x86_64 13/24
Verifying : xorg-x11-drv-fbdev-0.5.0-2.el8.x86_64 14/24
Verifying : xorg-x11-drv-libinput-0.29.0-1.el8.x86_64 15/24
Verifying : xorg-x11-drv-vesa-2.4.0-3.el8.x86_64 16/24
Verifying : xorg-x11-font-utils-1:7.5-40.el8.x86_64 17/24
Verifying : xorg-x11-fonts-misc-7.5-19.el8.noarch 18/24
Verifying : xorg-x11-server-Xorg-1.20.6-3.el8.x86_64 19/24
Verifying : xorg-x11-server-common-1.20.6-3.el8.x86_64 20/24
Verifying : xorg-x11-xauth-1:1.0.9-12.el8.x86_64 21/24
Verifying : xorg-x11-xbitmaps-1.1.1-13.el8.noarch 22/24
Verifying : xorg-x11-xkb-utils-7.7-27.el8.x86_64 23/24
Verifying : xorg-x11-apps-7.7-21.el8.x86_64 24/24
Installed:
libXaw-1.0.13-10.el8.x86_64 libXdmcp-1.1.2-11.el8.x86_64 libXfont2-2.0.3-2.el8.x86_64
libXmu-1.1.2-12.el8.x86_64 libXpm-3.5.12-8.el8.x86_64 libXt-1.1.5-12.el8.x86_64
libevdev-1.8.0-1.el8.x86_64 libfontenc-1.1.3-8.el8.x86_64 libinput-1.14.3-1.el8.x86_64
libwacom-1.1-2.el8.x86_64 libwacom-data-1.1-2.el8.noarch libxkbfile-1.0.9-9.el8.x86_64
mtdev-1.1.5-12.el8.x86_64 xorg-x11-apps-7.7-21.el8.x86_64 xorg-x11-drv-fbdev-0.5.0-2.el8.x86_64
xorg-x11-drv-libinput-0.29.0-1.el8.x86_64 xorg-x11-drv-vesa-2.4.0-3.el8.x86_64 xorg-x11-font-utils-1:7.5-40.el8.x86_64
xorg-x11-fonts-misc-7.5-19.el8.noarch xorg-x11-server-Xorg-1.20.6-3.el8.x86_64 xorg-x11-server-common-1.20.6-3.el8.x86_64
xorg-x11-xauth-1:1.0.9-12.el8.x86_64 xorg-x11-xbitmaps-1.1.1-13.el8.noarch xorg-x11-xkb-utils-7.7-27.el8.x86_64
Complete!

That is it, now you should be able to use your favorite xterm and use graphic tools remotely. I used cygwin X from my work PC to access a remote server and virt-manager:

That’s it, have fun