How To Install sanitizer on Ubuntu 18.04

In this tutorial we learn how to install sanitizer on Ubuntu 18.04. sanitizer is The Anomy Mail Sanitizer - an email virus scanner

Introduction

In this tutorial we learn how to install sanitizer on Ubuntu 18.04.

What is sanitizer

sanitizer is:

The Anomy sanitizer is what most people would call “an email virus scanner”. That description is not totally accurate, but it does cover one of the more important jobs that the sanitizer can do for you - it can scan email attachments for viruses. Other things it can do:

Disable potentially dangerous HTML code, such as javascript, within incoming email.

Protect you from email-based break-in attempts which exploit bugs in common email programs (Outlook, Eudora, Pine, …).

Block or “mangle” attachments based on their file names. This way if you don’t need to receive e.g. visual basic scripts, then you don’t have to worry about the security risk they imply (the ILOVEYOU virus was a visual basic program). This lets you protect yourself and your users from whole classes of attacks, without relying on complex, resource intensive and outdated virus scanning solutions.

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

Install sanitizer Using apt-get

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

sudo apt-get update

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

sudo apt-get -y install sanitizer

Install sanitizer Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install sanitizer

Install sanitizer 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 Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install sanitizer

How To Uninstall sanitizer on Ubuntu 18.04

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

sudo apt-get remove sanitizer

Uninstall sanitizer And Its Dependencies

To uninstall sanitizer and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove sanitizer

Remove sanitizer Configurations and Data

To remove sanitizer configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge sanitizer

Remove sanitizer configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge sanitizer

References

Summary

In this tutorial we learn how to install sanitizer package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.