How To Install gpm on CentOS 8

gpm is A mouse server for the Linux console

Introduction

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

What is gpm

Gpm provides mouse support to text-based Linux applications like the Emacs editor and the Midnight Commander file management system. Gpm also provides console cut-and-paste operations using the mouse and includes a program to allow pop-up menus to appear at the click of a mouse button.

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

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

sudo dnf -y install gpm

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

sudo yum -y install gpm

How To Uninstall gpm on CentOS 8

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

sudo dnf remove gpm

gpm Package Contents on CentOS 8

/etc/gpm-root.conf
/etc/gpm-syn.conf
/etc/gpm-twiddler.conf
/usr/bin/disable-paste
/usr/bin/display-buttons
/usr/bin/display-coords
/usr/bin/get-versions
/usr/bin/gpm-root
/usr/bin/hltest
/usr/bin/mev
/usr/bin/mouse-test
/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/e2e1a10f6d53e6db44ab19ac3d8c9087cbd72b
/usr/lib/.build-id/37
/usr/lib/.build-id/37/9b3fad7aa12f9a9672580e286ab2f271d1c44d
/usr/lib/.build-id/65
/usr/lib/.build-id/65/a4394eef4725f8f0a9d4cdcc456002b9c084d5
/usr/lib/.build-id/77
/usr/lib/.build-id/77/9859597ec905a3f0392f17ef69c20589718255
/usr/lib/.build-id/82
/usr/lib/.build-id/82/6340191596781ff675c290fb00f0f748b5b434
/usr/lib/.build-id/83
/usr/lib/.build-id/83/b0429c85f16f43d6a1482e727de21dd2b1d696
/usr/lib/.build-id/84
/usr/lib/.build-id/84/b9d674a551106c9e2cf43bfe1f04722b8bcc32
/usr/lib/.build-id/87
/usr/lib/.build-id/87/a842448735b08f16587cb6673758a68e4b4b11
/usr/lib/.build-id/b0
/usr/lib/.build-id/b0/a6b6cf775e2180c35317df931c5a99842d1653
/usr/lib/systemd/system/gpm.service
/usr/sbin/gpm
/usr/share/doc/gpm
/usr/share/doc/gpm/Announce
/usr/share/doc/gpm/COPYING
/usr/share/doc/gpm/FAQ
/usr/share/doc/gpm/README
/usr/share/doc/gpm/README.1.20.2
/usr/share/doc/gpm/README.etouch
/usr/share/doc/gpm/README.gunze
/usr/share/doc/gpm/README.microtouch
/usr/share/doc/gpm/README.synaptics
/usr/share/doc/gpm/README.twiddler
/usr/share/doc/gpm/TODO
/usr/share/doc/gpm/changelog
/usr/share/info/gpm.info.gz
/usr/share/man/man1/gpm-root.1.gz
/usr/share/man/man1/mev.1.gz
/usr/share/man/man1/mouse-test.1.gz
/usr/share/man/man7/gpm-types.7.gz
/usr/share/man/man8/gpm.8.gz

References

Summary

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