How To Install goaccess on Fedora 34

goaccess is Real-time web log analyzer and interactive viewer

Introduction

In this tutorial we learn how to install goaccess on Fedora 34.

What is goaccess

GoAccess is a real-time web log analyzer and interactive viewer that runs in a terminal in *nix systems. It provides fast and valuable HTTP statistics for system administrators that require a visual server report on the fly. Features GoAccess parses the specified web log file and outputs the data to terminal. * General statistics, bandwidth, etc. * Time taken to serve the request (useful to track pages that are slowing down your site). * Metrics for cumulative, average and slowest running requests. * Top visitors. * Requested files & static files. * 404 or Not Found. * Hosts, Reverse DNS, IP Location. * Operating Systems. * Browsers and Spiders. * Referring Sites & URLs. * Keyphrases. * Geo Location - Continent/Country/City. * Visitors Time Distribution. * HTTP Status Codes. * Ability to output JSON and CSV. * Tailor GoAccess to suit your own color taste/schemes. * Support for large datasets + data persistence. * Support for IPv6. * Output statistics to HTML. and more… GoAccess allows any custom log format string. Predefined options include, but not limited to * Amazon CloudFront (Download Distribution). * AWS Elastic Load Balancing. * Apache/Nginx Common/Combined + VHosts. * Google Cloud Storage. * W3C format (IIS).

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

Install goaccess on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install goaccess

Install goaccess on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo yum -y install goaccess

How To Uninstall goaccess on Fedora 34

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

sudo dnf remove goaccess

goaccess Package Contents on Fedora 34

/etc/goaccess/browsers.list
/etc/goaccess/goaccess.conf
/etc/goaccess/podcast.list
/usr/bin/goaccess
/usr/lib/.build-id
/usr/lib/.build-id/53
/usr/lib/.build-id/53/2af001d00bf3cf54d1269a66a338c08b50ccd2
/usr/share/licenses/goaccess
/usr/share/licenses/goaccess/COPYING
/usr/share/locale/de/LC_MESSAGES/goaccess.mo
/usr/share/locale/es/LC_MESSAGES/goaccess.mo
/usr/share/locale/fr/LC_MESSAGES/goaccess.mo
/usr/share/locale/ja/LC_MESSAGES/goaccess.mo
/usr/share/locale/pt_BR/LC_MESSAGES/goaccess.mo
/usr/share/locale/ru/LC_MESSAGES/goaccess.mo
/usr/share/locale/sv/LC_MESSAGES/goaccess.mo
/usr/share/locale/uk/LC_MESSAGES/goaccess.mo
/usr/share/locale/zh_CN/LC_MESSAGES/goaccess.mo
/usr/share/man/man1/goaccess.1.gz

References

Summary

In this tutorial we learn how to install goaccess on Fedora 34 using yum and dnf.