How To Install tlp on Rocky Linux 8

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

Introduction

In this tutorial we learn how to install tlp on Rocky Linux 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 Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install tlp.

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

sudo dnf -y install tlp

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

sudo yum -y install tlp

How To Uninstall tlp on Rocky Linux 8

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

sudo dnf remove tlp

tlp Package Contents on Rocky Linux 8

/etc/default/tlp
/usr/bin/bluetooth
/usr/bin/run-on-ac
/usr/bin/run-on-bat
/usr/bin/tlp-pcilist
/usr/bin/tlp-stat
/usr/bin/tlp-usblist
/usr/bin/wifi
/usr/bin/wwan
/usr/lib/systemd/system-preset/50-tlp.preset
/usr/lib/systemd/system/tlp-sleep.service
/usr/lib/systemd/system/tlp.service
/usr/lib/udev/rules.d/85-tlp.rules
/usr/lib/udev/tlp-usb-udev
/usr/sbin/tlp
/usr/share/bash-completion/completions/bluetooth
/usr/share/bash-completion/completions/tlp
/usr/share/bash-completion/completions/tlp-stat
/usr/share/bash-completion/completions/wifi
/usr/share/bash-completion/completions/wwan
/usr/share/doc/tlp
/usr/share/doc/tlp/COPYING
/usr/share/doc/tlp/README.md
/usr/share/doc/tlp/changelog
/usr/share/licenses/tlp
/usr/share/licenses/tlp/LICENSE
/usr/share/man/man1/bluetooth.1.gz
/usr/share/man/man1/run-on-ac.1.gz
/usr/share/man/man1/run-on-bat.1.gz
/usr/share/man/man1/tlp-pcilist.1.gz
/usr/share/man/man1/tlp-usblist.1.gz
/usr/share/man/man1/wifi.1.gz
/usr/share/man/man1/wwan.1.gz
/usr/share/man/man8/tlp-sleep.service.8.gz
/usr/share/man/man8/tlp-stat.8.gz
/usr/share/man/man8/tlp.8.gz
/usr/share/man/man8/tlp.service.8.gz
/usr/share/metainfo/de.linrunner.tlp.metainfo.xml
/usr/share/tlp
/usr/share/tlp/func.d
/usr/share/tlp/func.d/05-tlp-func-pm
/usr/share/tlp/func.d/10-tlp-func-cpu
/usr/share/tlp/func.d/15-tlp-func-disk
/usr/share/tlp/func.d/20-tlp-func-usb
/usr/share/tlp/func.d/25-tlp-func-rf
/usr/share/tlp/func.d/30-tlp-func-rf-sw
/usr/share/tlp/func.d/35-tlp-func-batt
/usr/share/tlp/func.d/40-tlp-func-bay
/usr/share/tlp/func.d/45-tlp-func-gpu
/usr/share/tlp/func.d/tlp-func-stat
/usr/share/tlp/tlp-func-base
/usr/share/tlp/tpacpi-bat
/var/lib/tlp

References

Summary

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