How To Install libtie-handle-offset-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install libtie-handle-offset-perl on Ubuntu 20.04.
What is libtie-handle-offset-perl
libtie-handle-offset-perl is:
Tie::Handle::Offset provides a file handle that hides the beginning of a file. After opening, the file is positioned at the offset location. “seek()” and “tell()” calls are modified to preserve the offset.
For example, “tell($fh)” will return 0, though the actual file position is at the offset. Likewise, “seek($fh,80,0)” will seek to 80 bytes from the offset instead of 80 bytes from the actual start of the file.
The included Tie::Handle::SkipHeader module automatically hides an email-style message header. After opening the file, it reads up to a blank or white-space-only line and sets the offset to the next byte.
There are three methods to install libtie-handle-offset-perl on Ubuntu 20.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 libtie-handle-offset-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 libtie-handle-offset-perl using apt-get by running the following command:
sudo apt-get -y install libtie-handle-offset-perl
Install libtie-handle-offset-perl Using apt
Update apt database with apt using the following command.
sudo apt update
After updating apt database, We can install libtie-handle-offset-perl using apt by running the following command:
sudo apt -y install libtie-handle-offset-perl
Install libtie-handle-offset-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 libtie-handle-offset-perl using aptitude by running the following command:
sudo aptitude -y install libtie-handle-offset-perl
How To Uninstall libtie-handle-offset-perl on Ubuntu 20.04
To uninstall only the libtie-handle-offset-perl package we can use the following command:
sudo apt-get remove libtie-handle-offset-perl
Uninstall libtie-handle-offset-perl And Its Dependencies
To uninstall libtie-handle-offset-perl and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove libtie-handle-offset-perl
Remove libtie-handle-offset-perl Configurations and Data
To remove libtie-handle-offset-perl configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge libtie-handle-offset-perl
Remove libtie-handle-offset-perl configuration, data, and all of its dependencies
We can use the following command to remove libtie-handle-offset-perl configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libtie-handle-offset-perl
References
Summary
In this tutorial we learn how to install libtie-handle-offset-perl package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.