How To Install libcode-tidyall-perl on Debian 12

Learn how to install libcode-tidyall-perl on Debian 12 with this tutorial. libcode-tidyall-perl is your all-in-one code tidier and validator

Introduction

In this tutorial we learn how to install libcode-tidyall-perl on Debian 12.

What is libcode-tidyall-perl

libcode-tidyall-perl is:

There are a lot of great code tidiers and validators out there. tidyall makes them available from a single unified interface.

You can run tidyall on a single file or on an entire project hierarchy, and configure which tidiers/validators are applied to which files. tidyall will back up files beforehand, and for efficiency will only consider files that have changed since they were last processed.

This package provides commandline tool tidyall and Perl module Code::TidyAll.

Includes hooks for Git and Subversion, and plugin for php-codesniffer, requiring corresponding packages installed.

There are three methods to install libcode-tidyall-perl on Debian 12. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install libcode-tidyall-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 libcode-tidyall-perl using apt-get by running the following command:

sudo apt-get -y install libcode-tidyall-perl

Install libcode-tidyall-perl Using apt

Update apt database with apt using the following command.

sudo apt update

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

sudo apt -y install libcode-tidyall-perl

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

sudo aptitude -y install libcode-tidyall-perl

How To Uninstall libcode-tidyall-perl on Debian 12

To uninstall only the libcode-tidyall-perl package we can use the following command:

sudo apt-get remove libcode-tidyall-perl

Uninstall libcode-tidyall-perl And Its Dependencies

To uninstall libcode-tidyall-perl and its dependencies that are no longer needed by Debian 12, we can use the command below:

sudo apt-get -y autoremove libcode-tidyall-perl

Remove libcode-tidyall-perl Configurations and Data

To remove libcode-tidyall-perl configuration and data from Debian 12 we can use the following command:

sudo apt-get -y purge libcode-tidyall-perl

Remove libcode-tidyall-perl configuration, data, and all of its dependencies

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

sudo apt-get -y autoremove --purge libcode-tidyall-perl

Dependencies

libcode-tidyall-perl have the following dependencies:

References

Summary

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