How To Install libmath-bezier-perl on Kali Linux

In this tutorial we learn how to install libmath-bezier-perl on Kali Linux. libmath-bezier-perl is Perl module for the solution of Bezier Curves

Introduction

In this tutorial we learn how to install libmath-bezier-perl on Kali Linux.

What is libmath-bezier-perl

libmath-bezier-perl is:

Math::Bezier implements the algorithm for the solution of Bezier curves as presented by Robert D. Miller in Graphics Gems V, “Quick and Simple Bezier Curve Drawing”.

A new Bezier curve is created using the new() constructor, passing a list of (x, y) control points.

use Math::Bezier; my @control = ( 0, 0, 10, 20, 30, -20, 40, 0 ); my $bezier = Math::Bezier->new(@control);

Alternately, a reference to a list of control points may be passed.

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

sudo apt-get -y install libmath-bezier-perl

Install libmath-bezier-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libmath-bezier-perl

Install libmath-bezier-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 libmath-bezier-perl using aptitude by running the following command:

sudo aptitude -y install libmath-bezier-perl

How To Uninstall libmath-bezier-perl on Kali Linux

To uninstall only the libmath-bezier-perl package we can use the following command:

sudo apt-get remove libmath-bezier-perl

Uninstall libmath-bezier-perl And Its Dependencies

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

sudo apt-get -y autoremove libmath-bezier-perl

Remove libmath-bezier-perl Configurations and Data

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

sudo apt-get -y purge libmath-bezier-perl

Remove libmath-bezier-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libmath-bezier-perl

Dependencies

libmath-bezier-perl have the following dependencies:

References

Summary

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