How To Install libperlbal-xs-httpheaders-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libperlbal-xs-httpheaders-perl
on Ubuntu 18.04.
What is libperlbal-xs-httpheaders-perl
libperlbal-xs-httpheaders-perl is:
Perlbal::XS::HTTPHeaders is used to read HTTP headers from a string and to parse them into an internal storage format for easy access and modification. You can also ask the module to reconstitute the headers into one big string, useful if you’re writing a proxy and need to read and write headers while maintaining the ability to modify individual parts of the whole.
The goal is to be fast. This is a lot faster than doing all of the text processing in Perl directly, and a lot of the flexibility of Perl is maintained by implementing the library in Perl and descending from Perlbal::HTTPHeaders.
There are three methods to install libperlbal-xs-httpheaders-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 libperlbal-xs-httpheaders-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 libperlbal-xs-httpheaders-perl
using apt-get
by running the following command:
sudo apt-get -y install libperlbal-xs-httpheaders-perl
Install libperlbal-xs-httpheaders-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libperlbal-xs-httpheaders-perl
using apt
by running the following command:
sudo apt -y install libperlbal-xs-httpheaders-perl
Install libperlbal-xs-httpheaders-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 libperlbal-xs-httpheaders-perl
using aptitude
by running the following command:
sudo aptitude -y install libperlbal-xs-httpheaders-perl
How To Uninstall libperlbal-xs-httpheaders-perl on Ubuntu 18.04
To uninstall only the libperlbal-xs-httpheaders-perl
package we can use the following command:
sudo apt-get remove libperlbal-xs-httpheaders-perl
Uninstall libperlbal-xs-httpheaders-perl And Its Dependencies
To uninstall libperlbal-xs-httpheaders-perl
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libperlbal-xs-httpheaders-perl
Remove libperlbal-xs-httpheaders-perl Configurations and Data
To remove libperlbal-xs-httpheaders-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libperlbal-xs-httpheaders-perl
Remove libperlbal-xs-httpheaders-perl configuration, data, and all of its dependencies
We can use the following command to remove libperlbal-xs-httpheaders-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libperlbal-xs-httpheaders-perl
References
Summary
In this tutorial we learn how to install libperlbal-xs-httpheaders-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.