How To Install tlp on Fedora 34
Introduction
In this tutorial we learn how to install tlp
on Fedora 34.
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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install tlp.
Install tlp on Fedora 34 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
After updating yum database, We can install tlp
using dnf
by running the following command:
sudo dnf -y install tlp
Install tlp on Fedora 34 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
Fedora 34 - x86_64 20 kB/s | 6.6 kB 00:00
Fedora 34 openh264 (From Cisco) - x86_64 1.4 kB/s | 989 B 00:00
Fedora Modular 34 - x86_64 68 kB/s | 6.5 kB 00:00
Fedora 34 - x86_64 - Updates 3.5 kB/s | 6.2 kB 00:01
Fedora Modular 34 - x86_64 - Updates 17 kB/s | 5.9 kB 00:00
Metadata cache created.
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 Fedora 34
To uninstall only the tlp
package we can use the following command:
sudo dnf remove tlp
tlp Package Contents on Fedora 34
/etc/tlp.conf
/etc/tlp.d
/etc/tlp.d/00-template.conf
/etc/tlp.d/README
/usr/bin/bluetooth
/usr/bin/run-on-ac
/usr/bin/run-on-bat
/usr/bin/tlp-stat
/usr/bin/wifi
/usr/bin/wwan
/usr/lib/systemd/system-preset/50-tlp.preset
/usr/lib/systemd/system-sleep
/usr/lib/systemd/system-sleep/tlp
/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/wifi.1.gz
/usr/share/man/man1/wwan.1.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/defaults.conf
/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/tlp-pcilist
/usr/share/tlp/tlp-readconfs
/usr/share/tlp/tlp-usblist
/usr/share/tlp/tpacpi-bat
/var/lib/tlp
References
Summary
In this tutorial we learn how to install tlp
on Fedora 34 using yum and dnf.