How To Install libnet-google-safebrowsing2-perl on Debian 9

In this tutorial we learn how to install libnet-google-safebrowsing2-perl on Debian 9. libnet-google-safebrowsing2-perl is Perl extension for the Google Safe Browsing v2 API

Introduction

In this tutorial we learn how to install libnet-google-safebrowsing2-perl on Debian 9.

What is libnet-google-safebrowsing2-perl

libnet-google-safebrowsing2-perl is:

The library passes most of the unit tests listed in the API documentation. See the documentation (http://code.google.com/apis/safebrowsing/developers_guide_v2.html) for more details about the failed tests.

The Google Safe Browsing database must be stored and managed locally. Net::Google::SafeBrowsing2::Sqlite uses Sqlite as the storage back-end, Net::Google::SafeBrowsing2::MySQL uses MySQL. Other storage mechanisms (databases, memory, etc.) can be added and used transparently with this module.

You may want to look at “Google Safe Browsing v2: Implementation Notes” (http://www.zscaler.com/research/Google%20Safe%20Browsing%20v2%20API.pdf), a collection of notes and real-world numbers about the API. This is intended for people who want to learn more about the API, whether as a user or to make their own implementation.

The source code is available on github at https://github.com/juliensobrier/Net-Google-SafeBrowsing2.

If you do not need to inspect more than 10,000 URLs a day, you can use Net::Google::SafeBrowsing2::Lookup with the Google Safe Browsing v2 Lookup API which does not require to store and maintain a local database.

IMPORTANT: If you start with an empty database, you will need to perform several updates to retrieve all the Google Safe Browsing information. This may require up to 24 hours. This is a limitation of the Google API, not of this module. See “Google Safe Browsing v2: Implementation Notes” at http://www.zscaler.com/research/Google%20Safe%20Browsing%20v2%20API.pdf.

There are three methods to install libnet-google-safebrowsing2-perl 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 libnet-google-safebrowsing2-perl Using apt-get

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

sudo apt-get update

After updating apt database, We can install libnet-google-safebrowsing2-perl using apt-get by running the following command:

sudo apt-get -y install libnet-google-safebrowsing2-perl

Install libnet-google-safebrowsing2-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libnet-google-safebrowsing2-perl using apt by running the following command:

sudo apt -y install libnet-google-safebrowsing2-perl

Install libnet-google-safebrowsing2-perl 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 libnet-google-safebrowsing2-perl using aptitude by running the following command:

sudo aptitude -y install libnet-google-safebrowsing2-perl

How To Uninstall libnet-google-safebrowsing2-perl on Debian 9

To uninstall only the libnet-google-safebrowsing2-perl package we can use the following command:

sudo apt-get remove libnet-google-safebrowsing2-perl

Uninstall libnet-google-safebrowsing2-perl And Its Dependencies

To uninstall libnet-google-safebrowsing2-perl and its dependencies that are no longer needed by Debian 9, we can use the command below:

sudo apt-get -y autoremove libnet-google-safebrowsing2-perl

Remove libnet-google-safebrowsing2-perl Configurations and Data

To remove libnet-google-safebrowsing2-perl configuration and data from Debian 9 we can use the following command:

sudo apt-get -y purge libnet-google-safebrowsing2-perl

Remove libnet-google-safebrowsing2-perl configuration, data, and all of its dependencies

We can use the following command to remove libnet-google-safebrowsing2-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libnet-google-safebrowsing2-perl

Dependencies

libnet-google-safebrowsing2-perl have the following dependencies:

References

Summary

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