How To Install librun-parts-perl on Ubuntu 18.04

In this tutorial we learn how to install librun-parts-perl on Ubuntu 18.04. librun-parts-perl is Offers run-parts functionality in Perl

Introduction

In this tutorial we learn how to install librun-parts-perl on Ubuntu 18.04.

What is librun-parts-perl

librun-parts-perl is:

run-parts and hence Run::Parts runs all the executable files named within constraints described below, found in the given directory. Other files and directories are silently ignored.

Additionally they can just print the names of the all matching files (not limited to executables, but ignores blacklisted files like e.g. backup files), but don’t actually run them.

Run::Parts contains two backend implementation. Run::Parts::Debian actually uses /bin/run-parts and Run::Parts::Perl is a pure Perl implementation of a basic set of run-parts’ functionality.

On Debian Run::Parts uses Run::Parts::Debian by default. But you can also choose any of the backends explicitly.

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

sudo apt-get -y install librun-parts-perl

Install librun-parts-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install librun-parts-perl

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

sudo aptitude -y install librun-parts-perl

How To Uninstall librun-parts-perl on Ubuntu 18.04

To uninstall only the librun-parts-perl package we can use the following command:

sudo apt-get remove librun-parts-perl

Uninstall librun-parts-perl And Its Dependencies

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

sudo apt-get -y autoremove librun-parts-perl

Remove librun-parts-perl Configurations and Data

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

sudo apt-get -y purge librun-parts-perl

Remove librun-parts-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge librun-parts-perl

References

Summary

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