How To Install dansguardian on Debian 9

In this tutorial we learn how to install dansguardian on Debian 9. dansguardian is Web content filtering

Introduction

In this tutorial we learn how to install dansguardian on Debian 9.

What is dansguardian

dansguardian is:

DansGuardian filters the content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites.

It provides real-time virus scanning capabilities for content access.

DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.

DansGuardian requires squid or another similar caching proxy server on your local network.

There are three methods to install dansguardian on Debian 9. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install dansguardian Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install dansguardian using apt-get by running the following command:

sudo apt-get -y install dansguardian

Install dansguardian Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install dansguardian using apt by running the following command:

sudo apt -y install dansguardian

Install dansguardian Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Debian. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install dansguardian using aptitude by running the following command:

sudo aptitude -y install dansguardian

How To Uninstall dansguardian on Debian 9

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

sudo apt-get remove dansguardian

Uninstall dansguardian And Its Dependencies

To uninstall dansguardian and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove dansguardian

Remove dansguardian Configurations and Data

To remove dansguardian configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge dansguardian

Remove dansguardian configuration, data, and all of its dependencies

We can use the following command to remove dansguardian configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge dansguardian

Dependencies

dansguardian have the following dependencies:

References

Summary

In this tutorial we learn how to install dansguardian package on Debian 9 using different package management tools: apt, apt-get and aptitude.