How To Install nut-cgi on Rocky Linux 8

In this tutorial we learn how to install nut-cgi on Rocky Linux 8. nut-cgi is CGI utilities for the Network UPS Tools

Introduction

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

What is nut-cgi

This package includes CGI programs for accessing UPS status via a web browser.

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

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

sudo dnf -y install nut-cgi

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

sudo yum -y install nut-cgi

How To Uninstall nut-cgi on Rocky Linux 8

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

sudo dnf remove nut-cgi

nut-cgi Package Contents on Rocky Linux 8

/etc/ups/hosts.conf
/etc/ups/upsset.conf
/etc/ups/upsstats-single.html
/etc/ups/upsstats.html
/usr/lib/.build-id
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/b49e06b75e031a3010200698c69daa41afb45e
/usr/lib/.build-id/9c/bc8f612a20136ad6fa63478781e0b8b286d48f
/usr/lib/.build-id/c1
/usr/lib/.build-id/c1/b9c05b1313f16ddb35abf0790e933b24f737c1
/usr/share/man/man5/hosts.conf.5.gz
/usr/share/man/man5/upsset.conf.5.gz
/usr/share/man/man5/upsstats.html.5.gz
/usr/share/man/man8/upsimage.cgi.8.gz
/usr/share/man/man8/upsset.cgi.8.gz
/usr/share/man/man8/upsstats.cgi.8.gz
/var/www/nut-cgi-bin
/var/www/nut-cgi-bin/upsimage.cgi
/var/www/nut-cgi-bin/upsset.cgi
/var/www/nut-cgi-bin/upsstats.cgi

References

Summary

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