How To Install libcgi-formbuilder-perl on Kali Linux

In this tutorial we learn how to install libcgi-formbuilder-perl on Kali Linux. libcgi-formbuilder-perl is Easily generate and process stateful CGI forms

Introduction

In this tutorial we learn how to install libcgi-formbuilder-perl on Kali Linux.

What is libcgi-formbuilder-perl

libcgi-formbuilder-perl is:

CGI::FormBuilder is a Perl module for generating, processing, and validating CGI forms. It’s an extremely fast and robust module with a ridiculous set of features.

Highlights:

  • DWIMmery FormBuilder tries to do what you mean. Tell it the fields you care about, and it takes care of all the stupid HTML and JavaScript generation and processing for you. It also gives you back the correct values that you want. It will even label your fields automatically with human-readable names.

  • Input field abstraction Simply define your fields and their options, and FormBuilder will take care of figuring out what the best HTML representation is. It will then generate the appropriate input fields (text, select, radio, etc), even changing any JavaScript actions appropriately.

  • Easy handling of defaults Just specify a hash of values to use as the defaults for your fields. This will be searched case-insensitively and displayed in the form. What’s more, if the user enters something via the CGI that overrides a default, when you use the field() method to get the data you’ll get the correct value.

  • Correct stickiness Stickiness is a PITA. FormBuilder correctly handles even multiple values selected in a multiple select list, completely integrated with proper handling of defaults.

  • Robust field validation Form validation sucks, and this is where FormBuilder is a big help. It has tons of builtin patterns, and will even generate gobs of JavaScript validation code for you. It is possible to specify your own regexps as well, and FormBuilder will even check multivalued select lists correctly.

  • Multiple submit mode support FormBuilder allows one to reliably tell whether the person clicked on the “Update” or “Delete” button of your form, normally a big pain.

  • Template driver support FormBuilder can natively “drive” several major templating engines:

  • HTML::Template

  • CGI::FastTemplate

  • Text::Template

  • Template Toolkit FormBuilder can help building a complete form application with a template in less that 20 lines of Perl.

  • Internationalized, Customizable Messaging FormBuilder allows customization of every single message that outputs for given locale.

  • Simple Interface The author has specialized in User Interface Design.

  • Extensive Documentation

There are three methods to install libcgi-formbuilder-perl on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcgi-formbuilder-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 libcgi-formbuilder-perl using apt-get by running the following command:

sudo apt-get -y install libcgi-formbuilder-perl

Install libcgi-formbuilder-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcgi-formbuilder-perl

Install libcgi-formbuilder-perl Using aptitude

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

sudo aptitude update

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

sudo aptitude -y install libcgi-formbuilder-perl

How To Uninstall libcgi-formbuilder-perl on Kali Linux

To uninstall only the libcgi-formbuilder-perl package we can use the following command:

sudo apt-get remove libcgi-formbuilder-perl

Uninstall libcgi-formbuilder-perl And Its Dependencies

To uninstall libcgi-formbuilder-perl and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove libcgi-formbuilder-perl

Remove libcgi-formbuilder-perl Configurations and Data

To remove libcgi-formbuilder-perl configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge libcgi-formbuilder-perl

Remove libcgi-formbuilder-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcgi-formbuilder-perl

Dependencies

libcgi-formbuilder-perl have the following dependencies:

References

Summary

In this tutorial we learn how to install libcgi-formbuilder-perl package on Kali Linux using different package management tools: apt, apt-get and aptitude.