How To Install gamemode on CentOS 8

gamemode is Optimize system performance for games on demand

Introduction

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

What is gamemode

GameMode is a daemon/lib combo for GNU/Linux that allows games to request a set of optimizations be temporarily applied to the host OS. GameMode was designed primarily as a stop-gap solution to problems with the Intel and AMD CPU “powersave” or “ondemand” governors, but is now host to a range of optimisation features and configurations, like tweaking various settings kernel scheduler, the GPU performance mode and gpu overclocking (NVIDIA). It can also excute custom scripts when launching games.

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

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

sudo dnf -y install gamemode

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

sudo yum -y install gamemode

How To Uninstall gamemode on CentOS 8

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

sudo dnf remove gamemode

gamemode Package Contents on CentOS 8

/usr/bin/gamemoded
/usr/bin/gamemoderun
/usr/lib/.build-id
/usr/lib/.build-id/04
/usr/lib/.build-id/04/6548d92cab4f5c8e7d8a6584991be156368962
/usr/lib/.build-id/28
/usr/lib/.build-id/28/ca68b55451056153199c4eabf72cb9cdcf4bdb
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/38ae95c17ae0a07f2d905b85ef57d4f6dd9cd7
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/4b1a0102aacc1755f9d9eadf4292a5f7c8ea61
/usr/lib/.build-id/c3/e6bbb2a2578e162756d322f1bd4901ad9df52d
/usr/lib/systemd/user/gamemoded.service
/usr/lib64/libgamemode.so
/usr/lib64/libgamemode.so.0
/usr/lib64/libgamemode.so.0.0.0
/usr/lib64/libgamemodeauto.so
/usr/lib64/libgamemodeauto.so.0
/usr/lib64/libgamemodeauto.so.0.0.0
/usr/libexec/cpugovctl
/usr/libexec/gpuclockctl
/usr/share/dbus-1/services/com.feralinteractive.GameMode.service
/usr/share/doc/gamemode
/usr/share/doc/gamemode/README.md
/usr/share/licenses/gamemode
/usr/share/licenses/gamemode/LICENSE.txt
/usr/share/man/man8/gamemoded.8.gz
/usr/share/polkit-1/actions/com.feralinteractive.GameMode.policy

References

Summary

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