How To Install libfile-lchown-perl on Debian 10

Learn how to install libfile-lchown-perl on Debian 10 with this tutorial. libfile-lchown-perl is module to modify attributes of symlinks without dereferencing them

Introduction

In this tutorial we learn how to install libfile-lchown-perl on Debian 10.

What is libfile-lchown-perl

libfile-lchown-perl is:

The regular chown system call will dereference a symlink and apply ownership changes to the file at which it points. Some OSes provide system calls that do not dereference a symlink but instead apply their changes directly to the named path, even if that path is a symlink (in much the same way that lstat will return attributes of a symlink rather than the file at which it points).

File::lchown provides a wrapper around those system calls.

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

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

Install libfile-lchown-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libfile-lchown-perl

Install libfile-lchown-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 Debian. Update apt database with aptitude using the following command.

sudo aptitude update

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

sudo aptitude -y install libfile-lchown-perl

How To Uninstall libfile-lchown-perl on Debian 10

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

sudo apt-get remove libfile-lchown-perl

Uninstall libfile-lchown-perl And Its Dependencies

To uninstall libfile-lchown-perl and its dependencies that are no longer needed by Debian 10, we can use the command below:

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

Remove libfile-lchown-perl Configurations and Data

To remove libfile-lchown-perl configuration and data from Debian 10 we can use the following command:

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

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

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

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

Dependencies

libfile-lchown-perl have the following dependencies:

References

Summary

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