How To Install barrier on CentOS 8

barrier is Use a single keyboard and mouse to control multiple computers

Introduction

In this tutorial we learn how to install barrier on CentOS 8.

What is barrier

Barrier is software that mimics the functionality of a KVM switch, which historically would allow you to use a single keyboard and mouse to control multiple computers. Barrier does this in software, allowing you to tell it which machine to control by moving your mouse to the edge of the screen, or by using a key press to switch focus to a different system.

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

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

sudo dnf -y install barrier

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

sudo yum -y install barrier

How To Uninstall barrier on CentOS 8

To uninstall only the barrier package we can use the following command:

sudo dnf remove barrier

barrier Package Contents on CentOS 8

/usr/bin/barrier
/usr/bin/barrierc
/usr/bin/barriers
/usr/lib/.build-id
/usr/lib/.build-id/11
/usr/lib/.build-id/11/99071806100835bb1c6aa1f08bcd1d6a8f4808
/usr/lib/.build-id/87
/usr/lib/.build-id/87/7ee498c30f96cd5bcd0c53058679563fc4da9c
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/f1b7ece3145f01bf552d0e54a5f1a7551adb4c
/usr/share/applications/barrier.desktop
/usr/share/doc/barrier
/usr/share/doc/barrier/ChangeLog
/usr/share/doc/barrier/Readme.txt
/usr/share/doc/barrier/barrier.conf.example
/usr/share/doc/barrier/barrier.conf.example-advanced
/usr/share/doc/barrier/barrier.conf.example-basic
/usr/share/icons/hicolor/scalable/apps/barrier.svg
/usr/share/licenses/barrier
/usr/share/licenses/barrier/LICENSE
/usr/share/man/man1/barrierc.1.gz
/usr/share/man/man1/barriers.1.gz
/usr/share/metainfo/barrier.appdata.xml
/usr/share/pixmaps/barrier.ico

References

Summary

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