How To Install upower on CentOS 8

upower is Power Management Service Power Management Service

Introduction

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

What is upower

UPower (formerly DeviceKit-power) provides a daemon, API and command line tools for managing power devices attached to the system. upower 0.99.7 3.el8 x86_64 171 k upower-0.99.7-3.el8.src.rpm appstream Power Management Service http GPLv2+ UPower (formerly DeviceKit-power) provides a daemon, API and command line tools for managing power devices attached to the system.

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

Install upower on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install upower

Install upower on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install upower

How To Uninstall upower on CentOS 8

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

sudo dnf remove upower

upower Package Contents on CentOS 8

/etc/UPower
/etc/UPower/UPower.conf
/etc/dbus-1/system.d/org.freedesktop.UPower.conf
/usr/bin/upower
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/f35ff534270af6a1a1a3ecc93f5f18d766ff3f
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/6aa3261120b1dac8a10a4b4ddf2f6672e0448a
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/fbcf12d7add9fae61ed1baa75bf56552bc41a0
/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
/usr/share/doc/upower/AUTHORS
/usr/share/doc/upower/HACKING
/usr/share/doc/upower/NEWS
/usr/share/doc/upower/README
/usr/share/licenses/upower
/usr/share/licenses/upower/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
/etc/UPower
/etc/UPower/UPower.conf
/etc/dbus-1/system.d/org.freedesktop.UPower.conf
/usr/bin/upower
/usr/lib/.build-id
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/bbd7c8e7470476575bcc6e1a2afa5ce173ae2b
/usr/lib/.build-id/bd
/usr/lib/.build-id/bd/aa1c0a9b59f0f1f7d6da091f45b63b8ea2b1e4
/usr/lib/.build-id/cb
/usr/lib/.build-id/cb/9c01437628e1e5de95ada6b4ba89b1a6a2af6e
/usr/lib/girepository-1.0/UPowerGlib-1.0.typelib
/usr/lib/libupower-glib.so.3
/usr/lib/libupower-glib.so.3.0.1
/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/libexec/upowerd
/usr/share/dbus-1/system-services/org.freedesktop.UPower.service
/usr/share/doc/upower
/usr/share/doc/upower/AUTHORS
/usr/share/doc/upower/HACKING
/usr/share/doc/upower/NEWS
/usr/share/doc/upower/README
/usr/share/licenses/upower
/usr/share/licenses/upower/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 on CentOS 8 using yum and dnf.