How To Install libbsd-arc4random-perl on Ubuntu 18.04

In this tutorial we learn how to install libbsd-arc4random-perl on Ubuntu 18.04. libbsd-arc4random-perl is CPANs BSD

Introduction

In this tutorial we learn how to install libbsd-arc4random-perl on Ubuntu 18.04.

What is libbsd-arc4random-perl

libbsd-arc4random-perl is:

The BSD::arc4random module provides a Perl API for the arc4random(3) suite of functions and a few natively implemented functions.

Exposed functions are: have_kintf (ability to push entropy back to the kernel); arc4random, arc4random_bytes, arc4random_uniform, the RANDOM variable (get entropy); arc4random_stir (next time used, some entropy from the kernel is first requested); arc4random_addrandom (add user data to SRNG state); arc4random_push[bk] (push user data to kernel RNG if supported; add kernel data or, if not supported, user data to SRNG); the ability to “tie” variables to this module for retrieving and storing entropy (e.g. in $RANDOM).

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

sudo apt-get -y install libbsd-arc4random-perl

Install libbsd-arc4random-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libbsd-arc4random-perl

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

sudo aptitude -y install libbsd-arc4random-perl

How To Uninstall libbsd-arc4random-perl on Ubuntu 18.04

To uninstall only the libbsd-arc4random-perl package we can use the following command:

sudo apt-get remove libbsd-arc4random-perl

Uninstall libbsd-arc4random-perl And Its Dependencies

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

sudo apt-get -y autoremove libbsd-arc4random-perl

Remove libbsd-arc4random-perl Configurations and Data

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

sudo apt-get -y purge libbsd-arc4random-perl

Remove libbsd-arc4random-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libbsd-arc4random-perl

References

Summary

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