How To Install libfile-chmod-perl on Ubuntu 20.04

In this tutorial we learn how to install libfile-chmod-perl on Ubuntu 20.04. libfile-chmod-perl is chmod() override with symbolic and ls-style modes

Introduction

In this tutorial we learn how to install libfile-chmod-perl on Ubuntu 20.04.

What is libfile-chmod-perl

libfile-chmod-perl is:

File::chmod is a utility that allows one to bypass system calls or bit processing of a file’s permissions. It overloads the chmod() function with its own that gets an octal mode, a symbolic mode, or an “ls” mode. If you wish not to overload chmod(), you can export symchmod() and lschmod(), which take, respectively, a symbolic mode and an “ls” mode.

There are three methods to install libfile-chmod-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 libfile-chmod-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-chmod-perl using apt-get by running the following command:

sudo apt-get -y install libfile-chmod-perl

Install libfile-chmod-perl Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install libfile-chmod-perl using apt by running the following command:

sudo apt -y install libfile-chmod-perl

Install libfile-chmod-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-chmod-perl using aptitude by running the following command:

sudo aptitude -y install libfile-chmod-perl

How To Uninstall libfile-chmod-perl on Ubuntu 20.04

To uninstall only the libfile-chmod-perl package we can use the following command:

sudo apt-get remove libfile-chmod-perl

Uninstall libfile-chmod-perl And Its Dependencies

To uninstall libfile-chmod-perl and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove libfile-chmod-perl

Remove libfile-chmod-perl Configurations and Data

To remove libfile-chmod-perl configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge libfile-chmod-perl

Remove libfile-chmod-perl configuration, data, and all of its dependencies

We can use the following command to remove libfile-chmod-perl configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge libfile-chmod-perl

References

Summary

In this tutorial we learn how to install libfile-chmod-perl package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.