How To Install virt-viewer on CentOS 8

virt-viewer is Virtual Machine Viewer

Introduction

In this tutorial we learn how to install virt-viewer on CentOS 8.

What is virt-viewer

Virtual Machine Viewer provides a graphical console client for connecting to virtual machines. It uses the GTK-VNC or SPICE-GTK widgets to provide the display, and libvirt for looking up VNC/SPICE server details.

We can use yum or dnf to install virt-viewer on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install virt-viewer.

Install virt-viewer on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install virt-viewer using dnf by running the following command:

sudo dnf -y install virt-viewer

Install virt-viewer on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install virt-viewer using yum by running the following command:

sudo yum -y install virt-viewer

How To Uninstall virt-viewer on CentOS 8

To uninstall only the virt-viewer package we can use the following command:

sudo dnf remove virt-viewer

virt-viewer Package Contents on CentOS 8

/usr/bin/remote-viewer
/usr/bin/virt-viewer
/usr/lib/.build-id
/usr/lib/.build-id/60
/usr/lib/.build-id/60/b2af934303012f46d001a3ba3e07457829f668
/usr/lib/.build-id/db
/usr/lib/.build-id/db/0242a7292184598fb7fb3e2573c8397988c748
/usr/share/appdata/remote-viewer.appdata.xml
/usr/share/applications/remote-viewer.desktop
/usr/share/doc/virt-viewer
/usr/share/doc/virt-viewer/AUTHORS
/usr/share/doc/virt-viewer/COPYING
/usr/share/doc/virt-viewer/ChangeLog
/usr/share/doc/virt-viewer/NEWS
/usr/share/doc/virt-viewer/README.md
/usr/share/icons/hicolor/16x16/apps/virt-viewer.png
/usr/share/icons/hicolor/22x22/apps/virt-viewer.png
/usr/share/icons/hicolor/24x24/apps/virt-viewer.png
/usr/share/icons/hicolor/24x24/devices/virt-viewer-usb.png
/usr/share/icons/hicolor/24x24/devices/virt-viewer-usb.svg
/usr/share/icons/hicolor/256x256/apps/virt-viewer.png
/usr/share/icons/hicolor/32x32/apps/virt-viewer.png
/usr/share/icons/hicolor/48x48/apps/virt-viewer.png
/usr/share/locale/af/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/am/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/anp/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ar/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/as/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ast/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/bal/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/be/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/bg/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/bn/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/bn_IN/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/bo/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/br/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/brx/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/bs/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ca/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/cs/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/cy/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/da/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/de/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/de_CH/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/el/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/en_GB/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/eo/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/es/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/et/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/eu/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/fa/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/fi/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/fr/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/gl/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/gu/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/he/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/hi/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/hr/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/hu/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ia/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/id/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ilo/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/is/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/it/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ja/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ka/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/kk/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/km/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/kn/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ko/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/kw/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/kw@kkcor/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/kw@uccor/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/kw_GB/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ky/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/lt/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/lv/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/mai/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/mk/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ml/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/mn/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/mr/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ms/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/nb/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/nds/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ne/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/nl/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/nn/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/nso/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/or/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/pa/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/pl/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/pt/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/pt_BR/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ro/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ru/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/si/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/sk/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/sl/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/sq/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/sr/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/sr@latin/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/sv/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ta/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/te/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/tg/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/th/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/tr/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/tw/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/uk/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/ur/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/vi/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/wba/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/yo/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/zh_CN/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/zh_HK/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/zh_TW/LC_MESSAGES/virt-viewer.mo
/usr/share/locale/zu/LC_MESSAGES/virt-viewer.mo
/usr/share/man/man1/remote-viewer.1.gz
/usr/share/man/man1/virt-viewer.1.gz
/usr/share/mime/packages/virt-viewer-mime.xml

References

Summary

In this tutorial we learn how to install virt-viewer on CentOS 8 using yum and dnf.