How To Install spice-vdagent on CentOS 8

spice-vdagent is Agent for Spice guests

Introduction

In this tutorial we learn how to install spice-vdagent on CentOS 8.

What is spice-vdagent

Spice agent for Linux guests offering the following features Features * Client mouse mode (no need to grab mouse by client, no mouse lag) this is handled by the daemon by feeding mouse events into the kernel via uinput. This will only work if the active X-session is running a spice-vdagent process so that its resolution can be determined. * Automatic adjustment of the X-session resolution to the client resolution * Support of copy and paste (text and images) between the active X-session and the client

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

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

sudo dnf -y install spice-vdagent

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

sudo yum -y install spice-vdagent

How To Uninstall spice-vdagent on CentOS 8

To uninstall only the spice-vdagent package we can use the following command:

sudo dnf remove spice-vdagent

spice-vdagent Package Contents on CentOS 8

/etc/xdg/autostart/spice-vdagent.desktop
/usr/bin/spice-vdagent
/usr/lib/.build-id
/usr/lib/.build-id/bf
/usr/lib/.build-id/bf/9055077fa8a69c48fb08a3d009ff3d208cadc5
/usr/lib/.build-id/fe
/usr/lib/.build-id/fe/44787077c3993ff2036d64196b34b123fdfd9c
/usr/lib/systemd/system/spice-vdagentd.service
/usr/lib/systemd/system/spice-vdagentd.socket
/usr/lib/tmpfiles.d/spice-vdagentd.conf
/usr/lib/udev/rules.d/70-spice-vdagentd.rules
/usr/sbin/spice-vdagentd
/usr/share/doc/spice-vdagent
/usr/share/doc/spice-vdagent/CHANGELOG.md
/usr/share/doc/spice-vdagent/COPYING
/usr/share/doc/spice-vdagent/README.md
/usr/share/gdm
/usr/share/gdm/autostart
/usr/share/gdm/autostart/LoginWindow
/usr/share/gdm/autostart/LoginWindow/spice-vdagent.desktop
/usr/share/gdm/greeter
/usr/share/gdm/greeter/autostart
/usr/share/gdm/greeter/autostart/spice-vdagent.desktop
/usr/share/man/man1/spice-vdagent.1.gz
/usr/share/man/man1/spice-vdagentd.1.gz
/var/run/spice-vdagentd

References

Summary

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