How To Install switcheroo-control on Rocky Linux 8

In this tutorial we learn how to install switcheroo-control on Rocky Linux 8. switcheroo-control is D-Bus service to check the availability of dual-GPU

Introduction

In this tutorial we learn how to install switcheroo-control on Rocky Linux 8.

What is switcheroo-control

D-Bus service to check the availability of dual-GPU.

We can use yum or dnf to install switcheroo-control on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install switcheroo-control.

Install switcheroo-control on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install switcheroo-control using dnf by running the following command:

sudo dnf -y install switcheroo-control

Install switcheroo-control on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install switcheroo-control using yum by running the following command:

sudo yum -y install switcheroo-control

How To Uninstall switcheroo-control on Rocky Linux 8

To uninstall only the switcheroo-control package we can use the following command:

sudo dnf remove switcheroo-control

switcheroo-control Package Contents on Rocky Linux 8

/etc/dbus-1/system.d/net.hadess.SwitcherooControl.conf
/usr/lib/.build-id
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/b82b574e867d231c5be4611e27ebd6fe05ef66
/usr/lib/systemd/system/switcheroo-control.service
/usr/sbin/switcheroo-control
/usr/share/doc/switcheroo-control
/usr/share/doc/switcheroo-control/NEWS
/usr/share/doc/switcheroo-control/README.md
/usr/share/licenses/switcheroo-control
/usr/share/licenses/switcheroo-control/COPYING

References

Summary

In this tutorial we learn how to install switcheroo-control on Rocky Linux 8 using yum and dnf.