How To Install squidGuard on AlmaLinux 8

In this tutorial we learn how to install squidGuard in AlmaLinux 8. squidGuard is Filter, redirector and access controller plugin for squid

Introduction

In this tutorial we learn how to install squidGuard on AlmaLinux 8.

What is squidGuard

squidGuard can be used to - limit the web access for some users to a list of accepted/well known web servers and/or URLs only. - block access to some listed or blacklisted web servers and/or URLs for some users. - block access to URLs matching a list of regular expressions or words for some users. - enforce the use of domainnames/prohibit the use of IP address in URLs. - redirect blocked URLs to an “intelligent” CGI based info page. - redirect unregistered user to a registration form. - redirect popular downloads like Netscape, MSIE etc. to local copies. - redirect banners to an empty GIF. - have different access rules based on time of day, day of the week, date etc. - have different rules for different user groups. - and much more.. Neither squidGuard nor Squid can be used to - filter/censor/edit text inside documents - filter/censor/edit embeded scripting languages like JavaScript or VBscript inside HTML

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

Install squidGuard on AlmaLinux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install squidGuard

Install squidGuard on AlmaLinux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

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

sudo yum -y install squidGuard

How To Uninstall squidGuard on AlmaLinux 8

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

sudo dnf remove squidGuard

References

Summary

In this tutorial we learn how to install squidGuard on AlmaLinux 8 using yum and dnf.