How To Install libio-tee-perl on Ubuntu 18.04

In this tutorial we learn how to install libio-tee-perl on Ubuntu 18.04. libio-tee-perl is module for multiplexing output to multiple output handles

Introduction

In this tutorial we learn how to install libio-tee-perl on Ubuntu 18.04.

What is libio-tee-perl

libio-tee-perl is:

IO::Tee objects can be used to multiplex input and output in two different ways. The first way is to multiplex output to zero or more output handles. The IO::Tee constructor, given a list of output handles, returns a tied handle that can be written to. When written to (using print or printf), the IO::Tee object multiplexes the output to the list of handles originally passed to the constructor. As a shortcut, you can also directly pass a string or an array reference to the constructor, in which case IO::File::new is called for you with the specified argument or arguments.

The second way is to multiplex input from one input handle to zero or more output handles as it is being read. The IO::Tee constructor, given an input handle followed by a list of output handles, returns a tied handle that can be read from as well as written to. When written to, the IO::Tee object multiplexes the output to all handles passed to the constructor, as described in the previous paragraph. When read from, the IO::Tee object reads from the input handle given as the first argument to the IO::Tee constructor, then writes any data read to the output handles given as the remaining arguments to the constructor.

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

sudo apt-get -y install libio-tee-perl

Install libio-tee-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libio-tee-perl

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

sudo aptitude -y install libio-tee-perl

How To Uninstall libio-tee-perl on Ubuntu 18.04

To uninstall only the libio-tee-perl package we can use the following command:

sudo apt-get remove libio-tee-perl

Uninstall libio-tee-perl And Its Dependencies

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

sudo apt-get -y autoremove libio-tee-perl

Remove libio-tee-perl Configurations and Data

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

sudo apt-get -y purge libio-tee-perl

Remove libio-tee-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libio-tee-perl

References

Summary

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