How To Install liburl-search-perl on Ubuntu 20.04
Introduction
In this tutorial we learn how to install liburl-search-perl
on Ubuntu 20.04.
What is liburl-search-perl
liburl-search-perl is:
URL::Search searches plain text for URLs and extracts them. It exports (on request) the following entities:
$URL_SEARCH_RE: This variable is the core of this module. It contains a regex that matches a URL.
extract_urls: This function takes a string and returns a list of all contained URLs.
partition_urls: This function takes a string and splits it up into text and URL segments.
There are three methods to install liburl-search-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 liburl-search-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 liburl-search-perl
using apt-get
by running the following command:
sudo apt-get -y install liburl-search-perl
Install liburl-search-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install liburl-search-perl
using apt
by running the following command:
sudo apt -y install liburl-search-perl
Install liburl-search-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 liburl-search-perl
using aptitude
by running the following command:
sudo aptitude -y install liburl-search-perl
How To Uninstall liburl-search-perl on Ubuntu 20.04
To uninstall only the liburl-search-perl
package we can use the following command:
sudo apt-get remove liburl-search-perl
Uninstall liburl-search-perl And Its Dependencies
To uninstall liburl-search-perl
and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:
sudo apt-get -y autoremove liburl-search-perl
Remove liburl-search-perl Configurations and Data
To remove liburl-search-perl
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge liburl-search-perl
Remove liburl-search-perl configuration, data, and all of its dependencies
We can use the following command to remove liburl-search-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge liburl-search-perl
References
Summary
In this tutorial we learn how to install liburl-search-perl
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.