How To Install driverctl on CentOS 7
Introduction
In this tutorial we learn how to install driverctl
on CentOS 7.
What is driverctl
driverctl is a tool for manipulating and inspecting the system device driver choices. Devices are normally assigned to their sole designated kernel driver by default. However in some situations it may be desireable to override that default, for example to try an older driver to work around a regression in a driver or to try an experimental alternative driver. Another common use-case is pass-through drivers and driver stubs to allow userspace to drive the device, such as in case of virtualization. driverctl integrates with udev to support overriding driver selection for both cold- and hotplugged devices from the moment of discovery, but can also change already assigned drivers, assuming they are not in use by the system. The driver overrides created by driverctl are persistent across system reboots by default.
We can use yum
or dnf
to install driverctl
on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install driverctl.
Install driverctl on CentOS 7 Using yum
Update yum database with yum
using the following command.
After updating yum database, We can install driverctl
using yum
by running the following command:
Install driverctl on CentOS 7 Using dnf
If you don’t have dnf installed you can install DNF on CentOS 7 first.
Update yum database with dnf
using the following command.
After updating yum database, We can install driverctl
using dnf
by running the following command:
How To Uninstall driverctl on CentOS 7
To uninstall only the driverctl
package we can use the following command:
References
Summary
In this tutorial we learn how to install driverctl
on CentOS 7 using yum
and dnf
.