How To Install tigervnc-server on CentOS 8

tigervnc-server is A TigerVNC server

Introduction

In this tutorial we learn how to install tigervnc-server on CentOS 8.

What is tigervnc-server

The VNC system allows you to access the same desktop from a wide variety of platforms. This package includes set of utilities which make usage of TigerVNC server more user friendly. It also contains x0vncserver program which can export your active X session.

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

Install tigervnc-server 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 tigervnc-server using dnf by running the following command:

sudo dnf -y install tigervnc-server

Install tigervnc-server 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 tigervnc-server using yum by running the following command:

sudo yum -y install tigervnc-server

How To Uninstall tigervnc-server on CentOS 8

To uninstall only the tigervnc-server package we can use the following command:

sudo dnf remove tigervnc-server

tigervnc-server Package Contents on CentOS 8

/etc/pam.d/tigervnc
/etc/tigervnc/vncserver-config-defaults
/etc/tigervnc/vncserver-config-mandatory
/etc/tigervnc/vncserver.users
/usr/bin/vncserver
/usr/bin/x0vncserver
/usr/lib/.build-id
/usr/lib/.build-id/5b
/usr/lib/.build-id/5b/1e874c1b0ba4d02d166399c7bb6c7ce0d0b1d6
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/d9a8c41df6fc87e256012cb2c0a4ce2e9e9653
/usr/lib/systemd/system/[email protected]
/usr/lib/systemd/system/xvnc.socket
/usr/lib/systemd/system/[email protected]
/usr/libexec/vncserver
/usr/libexec/vncsession-start
/usr/sbin/vncsession
/usr/share/doc/tigervnc/HOWTO.md
/usr/share/man/man1/x0vncserver.1.gz
/usr/share/man/man8/vncserver.8.gz
/usr/share/man/man8/vncsession.8.gz

References

Summary

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