How To Install nut on Rocky Linux 8

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

Introduction

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

What is nut

These programs are part of a developing project to monitor the assortment of UPSes that are found out there in the field. Many models have serial ports of some kind that allow some form of state checking. This capability has been harnessed where possible to allow for safe shutdowns, live status tracking on web pages, and more.

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

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

sudo dnf -y install nut

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

sudo yum -y install nut

How To Uninstall nut on Rocky Linux 8

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

sudo dnf remove nut

nut Package Contents on Rocky Linux 8

/etc/ups/nut.conf
/etc/ups/ups.conf
/etc/ups/upsd.conf
/etc/ups/upsd.users
/usr/bin/nut-scanner
/usr/bin/upslog
/usr/lib/.build-id
/usr/lib/.build-id/00
/usr/lib/.build-id/00/a582d38917a0972e4bd9d1bec8fbefe05475bf
/usr/lib/.build-id/09
/usr/lib/.build-id/09/096ab093f742315342524474e8d594f748d4a6
/usr/lib/.build-id/1c
/usr/lib/.build-id/1c/0e6ecea2e4e9a3dea3e2a22d4671d5cb5dbd23
/usr/lib/.build-id/25
/usr/lib/.build-id/25/cd8a9499bff98fffaacbdd65be45ab72d41a02
/usr/lib/.build-id/27
/usr/lib/.build-id/27/be94caa4cf37ccc1d0bef1d3d4aaa326747b35
/usr/lib/.build-id/28
/usr/lib/.build-id/28/1130b880858231c5830b999295b9ca8ac55512
/usr/lib/.build-id/2e
/usr/lib/.build-id/2e/647e7c20c420a3d06444afd6246498ec2f8ce7
/usr/lib/.build-id/33
/usr/lib/.build-id/33/53b8c657409bc34099f61e248e949bed922ff4
/usr/lib/.build-id/3b
/usr/lib/.build-id/3b/4dc68a89cc11b50d5881e6dbe6b4b9778dd152
/usr/lib/.build-id/42
/usr/lib/.build-id/42/87a70df08fca3f0cc5fec7738e5abe1f244316
/usr/lib/.build-id/49
/usr/lib/.build-id/49/f32999b41053f06ab1a706bdd74bdda52a3b2c
/usr/lib/.build-id/50
/usr/lib/.build-id/50/a3085b355b713b7e6b5d12cf07a90077001482
/usr/lib/.build-id/52
/usr/lib/.build-id/52/39a7180ec19468f84342a255d64720fbb42555
/usr/lib/.build-id/56
/usr/lib/.build-id/56/2ee2efbf8b53a001760ba7a609c304e3e9fc71
/usr/lib/.build-id/5a
/usr/lib/.build-id/5a/96df8ede6187cdb6c83fb274a92821147d06a6
/usr/lib/.build-id/65
/usr/lib/.build-id/65/a104a77f98ca2392734b2bfc0dbeff9299defb
/usr/lib/.build-id/66
/usr/lib/.build-id/66/8947ffaaa07d80c6ad11ac3d21bacf34ff6c89
/usr/lib/.build-id/70
/usr/lib/.build-id/70/5828e550477fba76013eb7d6fcad1d44cbe4a0
/usr/lib/.build-id/71
/usr/lib/.build-id/71/589aa3bb7902f287e7ef23aebb7949cdae635b
/usr/lib/.build-id/7e
/usr/lib/.build-id/7e/e0f0f45cf81ac9c37578ed174709a73e26e389
/usr/lib/.build-id/81
/usr/lib/.build-id/81/4308a0670d56ba85b623e171d21cabf96dc593
/usr/lib/.build-id/84
/usr/lib/.build-id/84/f8a03e615cbb39738ef20b8b9aa199d2b561e7
/usr/lib/.build-id/85
/usr/lib/.build-id/85/7a60bab1c5a9edc6b35276fbdb389ab216fe8c
/usr/lib/.build-id/89
/usr/lib/.build-id/89/82dbdb87b3a1a9ed25c7549bb932bd0756f13d
/usr/lib/.build-id/94
/usr/lib/.build-id/94/f2c0325ed38bfd4beef0f263b2239424541202
/usr/lib/.build-id/97
/usr/lib/.build-id/97/b01d723eedd57d36c551341fb079f8d16fbf18
/usr/lib/.build-id/98
/usr/lib/.build-id/98/1198682ea7bf38d6ab681b1a604ed08874f3a5
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/eb849af1e702dda06bccf1697bc20fda7b411b
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/6525ee81ae438653d3ffc618a4612261e3ff6f
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/2fcaf92400c06cf61dce1c2fd42f03bb793efe
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/293d627822ce87fe61d6dd3010a50c07018994
/usr/lib/.build-id/ac
/usr/lib/.build-id/ac/1e86ab211dc67d1e1bc290c6332d1687d31fb3
/usr/lib/.build-id/ae
/usr/lib/.build-id/ae/62133d45f0a2f5c09d9509c80895c30b41dbc5
/usr/lib/.build-id/af
/usr/lib/.build-id/af/d22962f3850ff9ee501d0c91a6a51503194e0f
/usr/lib/.build-id/b7
/usr/lib/.build-id/b7/1e788bb95ede6d3f67c6283dae118b316a9194
/usr/lib/.build-id/b7/3b4682585754b405a72fbe74a4f869f413ca5b
/usr/lib/.build-id/c0
/usr/lib/.build-id/c0/76084c52064633ce7be24cc9a0c367930d0807
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/322df87f6bdb069038198f73631017d0536f16
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/8f345f26c8fa15025170cf458dbec0e29b854e
/usr/lib/.build-id/c8/be6ee39ddede7f102d625df8b587dbeccade89
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/99b7caa74c8508195b5cf7dd3850f382eb01fd
/usr/lib/.build-id/d1
/usr/lib/.build-id/d1/7a3e0d503109e9b6015cd585e854b8ae359c6f
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/2a9ca9ca405bcfd645ae2f668bc97449d69762
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/b0b4e3eec50b3ef24f611fadb8ebbf3c5eb704
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/b83f508443878451a7c89fca64e235f2b9a30b
/usr/lib/.build-id/db
/usr/lib/.build-id/db/9f294965b2e0672b1af162e6e63dfefd650be3
/usr/lib/.build-id/dc
/usr/lib/.build-id/dc/74e633b621e407642a6ede355d650466ccb64e
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/c5f6a071ad58480843169622cc221bf72c1ff7
/usr/lib/.build-id/de
/usr/lib/.build-id/de/1b087bda7dc86df4330f240bc5874b74ca0342
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/0657e6716caed0b5e41503bec91a816b93ede0
/usr/lib/.build-id/e6
/usr/lib/.build-id/e6/38943fd21ba2f51035ef7fb9566da323e3a7d6
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/a55a0aa63283e767a13fd45ccaab2c7516a1f7
/usr/lib/.build-id/e8/f48af6e09469d9e23ada23e295e5ccd7a91c2c
/usr/lib/.build-id/eb
/usr/lib/.build-id/eb/87b5d58ef73cef5259f670ea9c2b6d50db5c90
/usr/lib/.build-id/f2
/usr/lib/.build-id/f2/3d466d43757b5be9e82ad533f4eceae2586216
/usr/lib/.build-id/f2/410e487860dd44953c00d06bf4dba5c81ed343
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/d5a32a6d6d4308314858b4ce8511ba6963774e
/usr/lib/.build-id/f6
/usr/lib/.build-id/f6/b973f0cf1e7cb7ff762d22476417260acafa49
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/1a0b1de53b9cb3ede20ca3687018bb34de6f40
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/f425b6e7ba16103acc8cd72f93b70f67183fb1
/usr/lib/systemd/system/nut-driver.service
/usr/lib/systemd/system/nut-server.service
/usr/lib/udev/rules.d/62-nut-ipmipsu.rules
/usr/lib/udev/rules.d/62-nut-usbups.rules
/usr/lib64/libnutscan.so.1
/usr/lib64/libnutscan.so.1.0.0
/usr/sbin/al175
/usr/sbin/apcsmart
/usr/sbin/apcsmart-old
/usr/sbin/apcupsd-ups
/usr/sbin/bcmxcp
/usr/sbin/bcmxcp_usb
/usr/sbin/belkin
/usr/sbin/belkinunv
/usr/sbin/bestfcom
/usr/sbin/bestfortress
/usr/sbin/bestuferrups
/usr/sbin/bestups
/usr/sbin/blazer_ser
/usr/sbin/blazer_usb
/usr/sbin/clone
/usr/sbin/clone-outlet
/usr/sbin/dummy-ups
/usr/sbin/etapro
/usr/sbin/everups
/usr/sbin/gamatronic
/usr/sbin/genericups
/usr/sbin/isbmex
/usr/sbin/ivtscd
/usr/sbin/liebert
/usr/sbin/liebert-esp2
/usr/sbin/masterguard
/usr/sbin/metasys
/usr/sbin/mge-shut
/usr/sbin/mge-utalk
/usr/sbin/microdowell
/usr/sbin/nut-ipmipsu
/usr/sbin/nutdrv_atcl_usb
/usr/sbin/nutdrv_qx
/usr/sbin/oldmge-shut
/usr/sbin/oneac
/usr/sbin/optiups
/usr/sbin/powercom
/usr/sbin/powerpanel
/usr/sbin/rhino
/usr/sbin/richcomm_usb
/usr/sbin/riello_ser
/usr/sbin/riello_usb
/usr/sbin/safenet
/usr/sbin/skel
/usr/sbin/snmp-ups
/usr/sbin/solis
/usr/sbin/tripplite
/usr/sbin/tripplite_usb
/usr/sbin/tripplitesu
/usr/sbin/upscode2
/usr/sbin/upsd
/usr/sbin/upsdrvctl
/usr/sbin/upsmon
/usr/sbin/upssched
/usr/sbin/usbhid-ups
/usr/sbin/victronups
/usr/share/doc/nut
/usr/share/doc/nut/AUTHORS
/usr/share/doc/nut/ChangeLog
/usr/share/doc/nut/INSTALL
/usr/share/doc/nut/MAINTAINERS
/usr/share/doc/nut/NEWS
/usr/share/doc/nut/README
/usr/share/doc/nut/UPGRADING
/usr/share/doc/nut/docs
/usr/share/doc/nut/docs/FAQ.txt
/usr/share/doc/nut/docs/acknowledgements.txt
/usr/share/doc/nut/docs/asciidoc.conf
/usr/share/doc/nut/docs/cables
/usr/share/doc/nut/docs/cables.txt
/usr/share/doc/nut/docs/cables/apc-rs500-serial.txt
/usr/share/doc/nut/docs/cables/apc.txt
/usr/share/doc/nut/docs/cables/ge-imv-victron.txt
/usr/share/doc/nut/docs/cables/imv.txt
/usr/share/doc/nut/docs/cables/mgeups.txt
/usr/share/doc/nut/docs/cables/powerware.txt
/usr/share/doc/nut/docs/cables/repotec.txt
/usr/share/doc/nut/docs/cables/sms.txt
/usr/share/doc/nut/docs/chunked.xsl
/usr/share/doc/nut/docs/common.xsl
/usr/share/doc/nut/docs/config-notes.txt
/usr/share/doc/nut/docs/configure.txt
/usr/share/doc/nut/docs/contact-closure.txt
/usr/share/doc/nut/docs/design.txt
/usr/share/doc/nut/docs/developer-guide.txt
/usr/share/doc/nut/docs/developers.txt
/usr/share/doc/nut/docs/docinfo.xml
/usr/share/doc/nut/docs/docinfo.xml.in
/usr/share/doc/nut/docs/documentation.txt
/usr/share/doc/nut/docs/download.txt
/usr/share/doc/nut/docs/features.txt
/usr/share/doc/nut/docs/hid-subdrivers.txt
/usr/share/doc/nut/docs/history.txt
/usr/share/doc/nut/docs/images
/usr/share/doc/nut/docs/images/advanced.png
/usr/share/doc/nut/docs/images/asciidoc.png
/usr/share/doc/nut/docs/images/bigbox.png
/usr/share/doc/nut/docs/images/bizarre.png
/usr/share/doc/nut/docs/images/blue-arrow.png
/usr/share/doc/nut/docs/images/cables
/usr/share/doc/nut/docs/images/cables/73-0724.png
/usr/share/doc/nut/docs/images/cables/940-0024C.jpg
/usr/share/doc/nut/docs/images/cables/Lansafecable.jpg
/usr/share/doc/nut/docs/images/cables/SOLA-330.png
/usr/share/doc/nut/docs/images/cables/belkin-f6cx-rkm-xu-cable.jpg
/usr/share/doc/nut/docs/images/cables/mac-940-0024C.png
/usr/share/doc/nut/docs/images/cables/mge-66049.png
/usr/share/doc/nut/docs/images/cables/mge-db9-rj12.jpg
/usr/share/doc/nut/docs/images/cables/mge-db9-rj45.jpg
/usr/share/doc/nut/docs/images/cables/mge-usb-rj45.jpg
/usr/share/doc/nut/docs/images/hostedby.png
/usr/share/doc/nut/docs/images/note.png
/usr/share/doc/nut/docs/images/nut-logo.png
/usr/share/doc/nut/docs/images/nut_layering.png
/usr/share/doc/nut/docs/images/old-cgi.png
/usr/share/doc/nut/docs/images/simple.png
/usr/share/doc/nut/docs/images/warning.png
/usr/share/doc/nut/docs/macros.txt
/usr/share/doc/nut/docs/net-protocol.txt
/usr/share/doc/nut/docs/new-clients.txt
/usr/share/doc/nut/docs/new-drivers.txt
/usr/share/doc/nut/docs/nut-names.txt
/usr/share/doc/nut/docs/nut-qa.txt
/usr/share/doc/nut/docs/nut.dict
/usr/share/doc/nut/docs/nutdrv_qx-subdrivers.txt
/usr/share/doc/nut/docs/outlets.txt
/usr/share/doc/nut/docs/packager-guide.txt
/usr/share/doc/nut/docs/scheduling.txt
/usr/share/doc/nut/docs/security.txt
/usr/share/doc/nut/docs/snmp-subdrivers.txt
/usr/share/doc/nut/docs/snmp.txt
/usr/share/doc/nut/docs/sock-protocol.txt
/usr/share/doc/nut/docs/support.txt
/usr/share/doc/nut/docs/user-manual.txt
/usr/share/doc/nut/docs/xhtml.xsl
/usr/share/licenses/nut
/usr/share/licenses/nut/COPYING
/usr/share/licenses/nut/LICENSE-GPL2
/usr/share/licenses/nut/LICENSE-GPL3
/usr/share/man/man5/nut.conf.5.gz
/usr/share/man/man5/ups.conf.5.gz
/usr/share/man/man5/upsd.conf.5.gz
/usr/share/man/man5/upsd.users.5.gz
/usr/share/man/man8/al175.8.gz
/usr/share/man/man8/apcsmart-old.8.gz
/usr/share/man/man8/apcsmart.8.gz
/usr/share/man/man8/apcupsd-ups.8.gz
/usr/share/man/man8/bcmxcp.8.gz
/usr/share/man/man8/bcmxcp_usb.8.gz
/usr/share/man/man8/belkin.8.gz
/usr/share/man/man8/belkinunv.8.gz
/usr/share/man/man8/bestfcom.8.gz
/usr/share/man/man8/bestfortress.8.gz
/usr/share/man/man8/bestuferrups.8.gz
/usr/share/man/man8/bestups.8.gz
/usr/share/man/man8/blazer_ser.8.gz
/usr/share/man/man8/blazer_usb.8.gz
/usr/share/man/man8/clone.8.gz
/usr/share/man/man8/dummy-ups.8.gz
/usr/share/man/man8/etapro.8.gz
/usr/share/man/man8/everups.8.gz
/usr/share/man/man8/gamatronic.8.gz
/usr/share/man/man8/genericups.8.gz
/usr/share/man/man8/isbmex.8.gz
/usr/share/man/man8/ivtscd.8.gz
/usr/share/man/man8/liebert-esp2.8.gz
/usr/share/man/man8/liebert.8.gz
/usr/share/man/man8/masterguard.8.gz
/usr/share/man/man8/metasys.8.gz
/usr/share/man/man8/mge-shut.8.gz
/usr/share/man/man8/mge-utalk.8.gz
/usr/share/man/man8/microdowell.8.gz
/usr/share/man/man8/nut-ipmipsu.8.gz
/usr/share/man/man8/nut-recorder.8.gz
/usr/share/man/man8/nut-scanner.8.gz
/usr/share/man/man8/nutdrv_atcl_usb.8.gz
/usr/share/man/man8/nutdrv_qx.8.gz
/usr/share/man/man8/nutupsdrv.8.gz
/usr/share/man/man8/oneac.8.gz
/usr/share/man/man8/optiups.8.gz
/usr/share/man/man8/powercom.8.gz
/usr/share/man/man8/powerpanel.8.gz
/usr/share/man/man8/rhino.8.gz
/usr/share/man/man8/richcomm_usb.8.gz
/usr/share/man/man8/riello_ser.8.gz
/usr/share/man/man8/riello_usb.8.gz
/usr/share/man/man8/safenet.8.gz
/usr/share/man/man8/snmp-ups.8.gz
/usr/share/man/man8/solis.8.gz
/usr/share/man/man8/tripplite.8.gz
/usr/share/man/man8/tripplite_usb.8.gz
/usr/share/man/man8/tripplitesu.8.gz
/usr/share/man/man8/upscode2.8.gz
/usr/share/man/man8/upsd.8.gz
/usr/share/man/man8/upsdrvctl.8.gz
/usr/share/man/man8/upslog.8.gz
/usr/share/man/man8/usbhid-ups.8.gz
/usr/share/man/man8/victronups.8.gz
/usr/share/nut/cmdvartab
/usr/share/nut/driver.list

References

Summary

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