How To Install ufdbGuard on CentOS 8

ufdbGuard is A URL filter for squid

Introduction

In this tutorial we learn how to install ufdbGuard on CentOS 8.

What is ufdbGuard

ufdbGuard is a free URL filter for Squid with additional features like SafeSearch enforcement for a large number of search engines, safer HTTPS visits and dynamic detection of proxies (URL filter circumventors). ufdbGuard supports free and commercial URL databases that can be downloaded from various sites and vendors. You can also make your own URL database for ufdbGuard.

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

Install ufdbGuard on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo dnf -y install ufdbGuard

Install ufdbGuard on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

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

sudo yum -y install ufdbGuard

How To Uninstall ufdbGuard on CentOS 8

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

sudo dnf remove ufdbGuard

ufdbGuard Package Contents on CentOS 8

/etc/logrotate.d/ufdbGuard
/etc/sysconfig/ufdbguard
/etc/ufdbguard
/etc/ufdbguard/ufdbGuard.conf
/usr/lib/.build-id
/usr/lib/.build-id/70
/usr/lib/.build-id/70/a2b08f838e9c2392449ca36366a8b596f3889d
/usr/lib/.build-id/85
/usr/lib/.build-id/85/eafbc8b19d4805a6b2cfd1aba8c6bf22d4783e
/usr/lib/.build-id/87
/usr/lib/.build-id/87/d001711fb7a32c7c4b90d5c5c8a37af20c24a5
/usr/lib/.build-id/96
/usr/lib/.build-id/96/3b0b74f23f5fadbe4e42171030d88bacc1b6bd
/usr/lib/.build-id/9e
/usr/lib/.build-id/9e/4c2754e5c7c0017212a19c55a701acf380336f
/usr/lib/systemd/system/ufdbGuard.service
/usr/lib/tmpfiles.d/ufdbGuard.conf
/usr/sbin/ufdb-pstack
/usr/sbin/ufdbAnalyse
/usr/sbin/ufdbConvertDB
/usr/sbin/ufdbDLstatus
/usr/sbin/ufdbGenTable
/usr/sbin/ufdbUpdate
/usr/sbin/ufdb_analyse_urls
/usr/sbin/ufdb_analyse_users
/usr/sbin/ufdb_top_urls
/usr/sbin/ufdb_top_users
/usr/sbin/ufdbgclient
/usr/sbin/ufdbguardd
/usr/sbin/ufdbhttpd
/usr/share/doc/ufdbGuard
/usr/share/doc/ufdbGuard/CHANGELOG
/usr/share/doc/ufdbGuard/CREDITS
/usr/share/doc/ufdbGuard/README
/usr/share/licenses/ufdbGuard
/usr/share/licenses/ufdbGuard/COPYING
/usr/share/licenses/ufdbGuard/GPL
/usr/share/man/man1/ufdbAnalyse.1.gz
/usr/share/man/man1/ufdb_analyse_urls.1.gz
/usr/share/man/man1/ufdb_analyse_users.1.gz
/usr/share/man/man1/ufdb_top_urls.1.gz
/usr/share/man/man1/ufdb_top_users.1.gz
/usr/share/man/man8/ufdbgclient.8.gz
/usr/share/man/man8/ufdbguardd.8.gz
/usr/share/man/man8/ufdbhttpd.8.gz
/usr/share/man/man8/ufdbupdate.8.gz
/var/lib/ufdbguard
/var/lib/ufdbguard/blacklists
/var/lib/ufdbguard/blacklists/security
/var/lib/ufdbguard/blacklists/security/cacerts
/var/lib/ufdbguard/images
/var/lib/ufdbguard/images/default.flv
/var/lib/ufdbguard/images/default.mp3
/var/lib/ufdbguard/images/default.mpeg
/var/lib/ufdbguard/images/default.wmv
/var/lib/ufdbguard/images/forbidden-normal-de.png
/var/lib/ufdbguard/images/forbidden-normal-en.png
/var/lib/ufdbguard/images/forbidden-normal-es.png
/var/lib/ufdbguard/images/forbidden-normal-fr.png
/var/lib/ufdbguard/images/forbidden-normal-it.png
/var/lib/ufdbguard/images/forbidden-normal-nl.png
/var/lib/ufdbguard/images/forbidden-normal-pl.png
/var/lib/ufdbguard/images/forbidden-normal-pt.png
/var/lib/ufdbguard/images/forbidden-normal-sv.png
/var/lib/ufdbguard/images/forbidden-normal-tr.png
/var/lib/ufdbguard/images/no-ads.png
/var/lib/ufdbguard/images/smallcross.png
/var/lib/ufdbguard/images/square.png
/var/lib/ufdbguard/images/transparent.png
/var/lib/ufdbguard/samples
/var/lib/ufdbguard/samples/URLblocked.cgi
/var/lib/ufdbguard/samples/execdomainlist.sh
/var/lib/ufdbguard/samples/execuserlist.sh
/var/log/ufdbguard
/var/run/ufdbguard

References

Summary

In this tutorial we learn how to install ufdbGuard on CentOS 8 using yum and dnf.