How To Install libbenchmark-progressbar-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libbenchmark-progressbar-perl
on Ubuntu 18.04.
What is libbenchmark-progressbar-perl
libbenchmark-progressbar-perl is:
Benchmark::ProgressBar is a combination of Benchmark and Term::ProgressBar that produces a simple progress bar illustrating execution of benchmark runs. As such, it is particularly useful for heavy benchmarking tests that take a long time to complete.
You can use it as a drop-in replacement for Benchmark, but the only functions that would display a progress bar are: cmpthese, timethese and timeit.
This module is not compatible for use with Benchmark in the same script. The author doesn’t know of any case where this would make sense.
There are three methods to install libbenchmark-progressbar-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 libbenchmark-progressbar-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 libbenchmark-progressbar-perl
using apt-get
by running the following command:
sudo apt-get -y install libbenchmark-progressbar-perl
Install libbenchmark-progressbar-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libbenchmark-progressbar-perl
using apt
by running the following command:
sudo apt -y install libbenchmark-progressbar-perl
Install libbenchmark-progressbar-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 libbenchmark-progressbar-perl
using aptitude
by running the following command:
sudo aptitude -y install libbenchmark-progressbar-perl
How To Uninstall libbenchmark-progressbar-perl on Ubuntu 18.04
To uninstall only the libbenchmark-progressbar-perl
package we can use the following command:
sudo apt-get remove libbenchmark-progressbar-perl
Uninstall libbenchmark-progressbar-perl And Its Dependencies
To uninstall libbenchmark-progressbar-perl
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libbenchmark-progressbar-perl
Remove libbenchmark-progressbar-perl Configurations and Data
To remove libbenchmark-progressbar-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libbenchmark-progressbar-perl
Remove libbenchmark-progressbar-perl configuration, data, and all of its dependencies
We can use the following command to remove libbenchmark-progressbar-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libbenchmark-progressbar-perl
References
Summary
In this tutorial we learn how to install libbenchmark-progressbar-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.