How To Install tlp on CentOS 8

In this tutorial we learn how to install tlp on CentOS 8. tlp is Advanced power management tool for Linux

Introduction

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

What is tlp

TLP is an advanced power management tool for Linux. It comes with a default configuration already optimized for battery life. At the same time it is highly customizable to fulfill specific user requirements. TLP supplies separate settings profiles for AC and battery power and can enable or disable Bluetooth, WiFi and WWAN radio devices upon system start-up. For ThinkPads it provides a unified way to configure charging thresholds and re-calibrate the battery for all models which support it (via tp-smapi or acpi-call). TLP is a pure command line tool with automated background tasks, it does not contain a GUI.

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

Install tlp on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install tlp using yum by running the following command:

sudo yum -y install tlp

Install tlp on CentOS 8 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.

sudo dnf makecache

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

sudo dnf -y install tlp

How To Uninstall tlp on CentOS 8

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

sudo dnf remove tlp

References

Summary

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