Introduction
In this tutorial we learn how to install libfile-fu-perl
on Ubuntu 22.04.
What is libfile-fu-perl
libfile-fu-perl is:
File::Fu is a Perl module that provides an method of manipulating directories
and files as objects, making use of operator overloading to allow for precise
composition fo paths and support for many built-in methods. It also provides
a way to create temporary directories and files.
The interface and style provided by this module are quite different than Perl
built-in functions or File::Spec. The syntax is concise and errors are checked
using exceptions, so you never need to check a return code.
There are three methods to install libfile-fu-perl
on Ubuntu 22.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-fu-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-fu-perl
using apt-get
by running the following command:
sudo apt-get -y install libfile-fu-perl
Install libfile-fu-perl Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install libfile-fu-perl
using apt
by running the following command:
sudo apt -y install libfile-fu-perl
Install libfile-fu-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-fu-perl
using aptitude
by running the following command:
sudo aptitude -y install libfile-fu-perl
How To Uninstall libfile-fu-perl on Ubuntu 22.04
To uninstall only the libfile-fu-perl
package we can use the following command:
sudo apt-get remove libfile-fu-perl
Uninstall libfile-fu-perl And Its Dependencies
To uninstall libfile-fu-perl
and its dependencies that are no longer needed by Ubuntu 22.04, we can use the command below:
sudo apt-get -y autoremove libfile-fu-perl
Remove libfile-fu-perl Configurations and Data
To remove libfile-fu-perl
configuration and data from Ubuntu 22.04 we can use the following command:
sudo apt-get -y purge libfile-fu-perl
Remove libfile-fu-perl configuration, data, and all of its dependencies
We can use the following command to remove libfile-fu-perl
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge libfile-fu-perl
References
Summary
In this tutorial we learn how to install libfile-fu-perl
package on Ubuntu 22.04 using different package management tools: apt
, apt-get
and aptitude
.