How To Install libcaptcha-recaptcha-perl on Ubuntu 18.04

In this tutorial we learn how to install libcaptcha-recaptcha-perl on Ubuntu 18.04. libcaptcha-recaptcha-perl is perl implementation of the reCAPTCHA API

Introduction

In this tutorial we learn how to install libcaptcha-recaptcha-perl on Ubuntu 18.04.

What is libcaptcha-recaptcha-perl

libcaptcha-recaptcha-perl is:

Captcha::reCAPTCHA is a perl module for accessing the reCAPTCHA API.

reCAPTCHA is a hybrid mechanical turk and captcha that allows visitors who complete the captcha to assist in the digitization of books. From http://recaptcha.net/learnmore.html:

reCAPTCHA improves the process of digitizing books by sending words that cannot be read by computers to the Web in the form of CAPTCHAs for humans to decipher. More specifically, each word that cannot be read correctly by OCR is placed on an image and used as a CAPTCHA. This is possible because most OCR programs alert you when a word cannot be read correctly.

To use reCAPTCHA you need to register your site here: https://admin.recaptcha.net/recaptcha/createsite/

There are three methods to install libcaptcha-recaptcha-perl 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 libcaptcha-recaptcha-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 libcaptcha-recaptcha-perl using apt-get by running the following command:

sudo apt-get -y install libcaptcha-recaptcha-perl

Install libcaptcha-recaptcha-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libcaptcha-recaptcha-perl using apt by running the following command:

sudo apt -y install libcaptcha-recaptcha-perl

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

sudo aptitude update

After updating apt database, We can install libcaptcha-recaptcha-perl using aptitude by running the following command:

sudo aptitude -y install libcaptcha-recaptcha-perl

How To Uninstall libcaptcha-recaptcha-perl on Ubuntu 18.04

To uninstall only the libcaptcha-recaptcha-perl package we can use the following command:

sudo apt-get remove libcaptcha-recaptcha-perl

Uninstall libcaptcha-recaptcha-perl And Its Dependencies

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

sudo apt-get -y autoremove libcaptcha-recaptcha-perl

Remove libcaptcha-recaptcha-perl Configurations and Data

To remove libcaptcha-recaptcha-perl configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge libcaptcha-recaptcha-perl

Remove libcaptcha-recaptcha-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcaptcha-recaptcha-perl

References

Summary

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