How To Install nut-cgi on Fedora 36

In this tutorial we learn how to install nut-cgi in Fedora 36. nut-cgi is CGI utilities for the Network UPS Tools

Introduction

In this tutorial we learn how to install nut-cgi on Fedora 36.

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 Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install nut-cgi.

Install nut-cgi on Fedora 36 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 Fedora 36 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 Fedora 36

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

sudo dnf remove nut-cgi

nut-cgi Package Contents on Fedora 36

/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/40
/usr/lib/.build-id/40/09d047a21ef62fac96880270761419cc4e7471
/usr/lib/.build-id/55
/usr/lib/.build-id/55/2d243be2e2c5b29d555ca8b79cbdded8b3c549
/usr/lib/.build-id/ea
/usr/lib/.build-id/ea/f869ba96bb5376cdb8537003a65913ed8778a9
/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 Fedora 36 using yum and [dnf]((/fedora/36/dnf/).