How To Install nut-client on Rocky Linux 8

In this tutorial we learn how to install nut-client on Rocky Linux 8. nut-client is Network UPS Tools client monitoring utilities

Introduction

In this tutorial we learn how to install nut-client on Rocky Linux 8.

What is nut-client

This package includes the client utilities that are required to monitor a ups that the client host has access to, but where the UPS is physically attached to a different computer on the network.

We can use yum or dnf to install nut-client on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install nut-client.

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

sudo dnf -y install nut-client

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

sudo yum -y install nut-client

How To Uninstall nut-client on Rocky Linux 8

To uninstall only the nut-client package we can use the following command:

sudo dnf remove nut-client

nut-client Package Contents on Rocky Linux 8

/etc/ups
/etc/ups/upsmon.conf
/etc/ups/upssched.conf
/lib/systemd/system-shutdown/nutshutdown
/usr/bin/upsc
/usr/bin/upscmd
/usr/bin/upsrw
/usr/bin/upssched-cmd
/usr/lib/.build-id
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/ecdd25106410ef35faa98a5595d7f2e5dbebf5
/usr/lib/.build-id/29
/usr/lib/.build-id/29/cc5cab0872fe817121b08579d1bb19daf95ed4
/usr/lib/.build-id/61
/usr/lib/.build-id/61/a7bf6e32ca9329366bd04c5e9e4f4b6e4a6996
/usr/lib/.build-id/81/4308a0670d56ba85b623e171d21cabf96dc593
/usr/lib/.build-id/92
/usr/lib/.build-id/92/a5ffb6323a6012bfe292f370afa567a0d92227
/usr/lib/.build-id/dc/74e633b621e407642a6ede355d650466ccb64e
/usr/lib/.build-id/ec
/usr/lib/.build-id/ec/78f58c7316019149eadace9e56b1ed338f3e07
/usr/lib/python3.6/site-packages
/usr/lib/python3.6/site-packages/PyNUT.py
/usr/lib/python3.6/site-packages/__pycache__
/usr/lib/python3.6/site-packages/__pycache__/PyNUT.cpython-36.opt-1.pyc
/usr/lib/python3.6/site-packages/__pycache__/PyNUT.cpython-36.pyc
/usr/lib/systemd/system/nut-monitor.service
/usr/lib/tmpfiles.d/nut-client.conf
/usr/lib64/libnutclient.so.0
/usr/lib64/libnutclient.so.0.0.0
/usr/lib64/libupsclient.so.4
/usr/lib64/libupsclient.so.4.0.0
/usr/sbin/upsmon
/usr/sbin/upssched
/usr/share/licenses/nut-client
/usr/share/licenses/nut-client/COPYING
/usr/share/licenses/nut-client/LICENSE-GPL2
/usr/share/licenses/nut-client/LICENSE-GPL3
/usr/share/man/man5/upsmon.conf.5.gz
/usr/share/man/man5/upssched.conf.5.gz
/usr/share/man/man8/upsc.8.gz
/usr/share/man/man8/upscmd.8.gz
/usr/share/man/man8/upsmon.8.gz
/usr/share/man/man8/upsrw.8.gz
/usr/share/man/man8/upssched.8.gz
/usr/share/nut
/usr/share/nut/cmdvartab
/usr/share/nut/driver.list
/var/lib/ups
/var/run/nut

References

Summary

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