How To Install apmd on Fedora 34
Introduction
In this tutorial we learn how to install apmd
on Fedora 34.
What is apmd
APMD is a set of programs for controlling the Advanced Power Management daemon and utilities found in most modern laptop computers. APMD can watch your notebook’s battery and warn users when the battery is low. APMD is also capable of shutting down the PCMCIA sockets before a suspend. Install the apmd package if you need to control the APM system on your laptop.
We can use yum
or dnf
to install apmd
on Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install apmd.
Install apmd 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 apmd
using dnf
by running the following command:
sudo dnf -y install apmd
Install apmd 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 apmd
using yum
by running the following command:
sudo yum -y install apmd
How To Uninstall apmd on Fedora 34
To uninstall only the apmd
package we can use the following command:
sudo dnf remove apmd
apmd Package Contents on Fedora 34
/etc/modules-load.d/apmd.conf
/etc/sysconfig/apm-scripts
/etc/sysconfig/apm-scripts/apmscript
/etc/sysconfig/apm-scripts/laptopmode
/etc/sysconfig/apmd
/usr/bin/apm
/usr/bin/apmsleep
/usr/lib/.build-id
/usr/lib/.build-id/17
/usr/lib/.build-id/17/0b0a80b922f53c69078f76b6aa9a8e685a8fb6
/usr/lib/.build-id/6a
/usr/lib/.build-id/6a/050e9f77b173b4cb25bbd41e2fc878f1c6bbf4
/usr/lib/.build-id/72
/usr/lib/.build-id/72/14017ddbe866e872c0433db583d5d09701c842
/usr/lib/systemd/system/apmd.service
/usr/sbin/apmd
/usr/share/doc/apmd
/usr/share/doc/apmd/AUTHORS
/usr/share/doc/apmd/ChangeLog
/usr/share/doc/apmd/LSM
/usr/share/doc/apmd/README
/usr/share/licenses/apmd
/usr/share/licenses/apmd/COPYING
/usr/share/licenses/apmd/apmlib.COPYING
/usr/share/man/fr/man1/apmsleep.fr.1.gz
/usr/share/man/man1/apm.1.gz
/usr/share/man/man1/apmsleep.1.gz
/usr/share/man/man8/apmd.8.gz
References
Summary
In this tutorial we learn how to install apmd
on Fedora 34 using yum and dnf.