How To Install libfile-wildcard-perl on Ubuntu 18.04
Introduction
In this tutorial we learn how to install libfile-wildcard-perl
on Ubuntu 18.04.
What is libfile-wildcard-perl
libfile-wildcard-perl is:
When looking at how various operating systems do filename wildcard expansion (globbing), VMS has a nice syntax which allows expansion and searching of whole directory trees. It would be nice if other operating systems had something like this built in. The best Unix can manage is through the utility program find.
File::Wildcard provides this facility to Perl. Whereas native VMS syntax uses the ellipsis “…”, this will not fit in with POSIX filenames, as … is a valid (though somewhat strange) filename. Instead, the construct “///” is used as this cannot syntactically be part of a filename, as you do not get three concurrent filename separators with nothing between (three slashes are used to avoid confusion with //node/path/name syntax).
You don’t have to use this syntax, as you can do the splitting yourself and pass in an arrayref as your path.
There are three methods to install libfile-wildcard-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 libfile-wildcard-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 libfile-wildcard-perl
using apt-get
by running the following command:
sudo apt-get -y install libfile-wildcard-perl
Install libfile-wildcard-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libfile-wildcard-perl
using apt
by running the following command:
sudo apt -y install libfile-wildcard-perl
Install libfile-wildcard-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 libfile-wildcard-perl
using aptitude
by running the following command:
sudo aptitude -y install libfile-wildcard-perl
How To Uninstall libfile-wildcard-perl on Ubuntu 18.04
To uninstall only the libfile-wildcard-perl
package we can use the following command:
sudo apt-get remove libfile-wildcard-perl
Uninstall libfile-wildcard-perl And Its Dependencies
To uninstall libfile-wildcard-perl
and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:
sudo apt-get -y autoremove libfile-wildcard-perl
Remove libfile-wildcard-perl Configurations and Data
To remove libfile-wildcard-perl
configuration and data from Ubuntu 18.04 we can use the following command:
sudo apt-get -y purge libfile-wildcard-perl
Remove libfile-wildcard-perl configuration, data, and all of its dependencies
We can use the following command to remove libfile-wildcard-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libfile-wildcard-perl
References
Summary
In this tutorial we learn how to install libfile-wildcard-perl
package on Ubuntu 18.04 using different package management tools: apt
, apt-get
and aptitude
.