How To Install upower.x86_64 on Amazon Linux 2

In this tutorial we learn how to install upower.x86_64 in Amazon Linux 2. upower.x86_64 is Power Management Service

Introduction

In this tutorial we learn how to install upower.x86_64 on Amazon Linux 2.

What is upower.x86_64

UPower (formerly DeviceKit-power) provides a daemon, API and command line tools for managing power devices attached to the system.

We can use yum to install upower.x86_64 on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install upower.x86_64.

Install upower.x86_64 on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install upower.x86_64 using yum by running the following command:

sudo yum -y install upower.x86_64

How To Uninstall upower.x86_64 on Amazon Linux 2

To uninstall only the upower.x86_64 package we can use the following command:

sudo yum remove upower.x86_64

upower.x86_64 Package Contents on Amazon Linux 2

/etc/UPower
/etc/UPower/UPower.conf
/etc/dbus-1/system.d/org.freedesktop.UPower.conf
/usr/bin/upower
/usr/lib/systemd/system/upower.service
/usr/lib/udev/rules.d/95-upower-csr.rules
/usr/lib/udev/rules.d/95-upower-hid.rules
/usr/lib/udev/rules.d/95-upower-wup.rules
/usr/lib64/girepository-1.0/UPowerGlib-1.0.typelib
/usr/lib64/libupower-glib.so.3
/usr/lib64/libupower-glib.so.3.0.1
/usr/libexec/upowerd
/usr/share/dbus-1/system-services/org.freedesktop.UPower.service
/usr/share/doc/upower-0.99.7
/usr/share/doc/upower-0.99.7/AUTHORS
/usr/share/doc/upower-0.99.7/HACKING
/usr/share/doc/upower-0.99.7/NEWS
/usr/share/doc/upower-0.99.7/README
/usr/share/licenses/upower-0.99.7
/usr/share/licenses/upower-0.99.7/COPYING
/usr/share/locale/fr/LC_MESSAGES/upower.mo
/usr/share/locale/it/LC_MESSAGES/upower.mo
/usr/share/locale/pl/LC_MESSAGES/upower.mo
/usr/share/locale/sv/LC_MESSAGES/upower.mo
/usr/share/man/man1/upower.1.gz
/usr/share/man/man7/UPower.7.gz
/usr/share/man/man8/upowerd.8.gz
/var/lib/upower

References

Summary

In this tutorial we learn how to install upower.x86_64 on Amazon Linux 2 using yum.