tidyall command not found

In this troubleshooting guide we learn how to fix tidyall command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

tidyall: command not found

or when using sudo you get the following error message

sudo: tidyall: command not found

Solutions to tidyall: command not found

How To Fix tidyall: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu tidyall is provided by libcode-tidyall-perl package.

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.

To fix this problem, we can install more using the command below.

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

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install libcode-tidyall-perl.

sudo apt -y install libcode-tidyall-perl

Or if you have aptitude installed you can use the following command.

sudo aptitude install libcode-tidyall-perl

Summary

In this tutorial we learn how to fix tidyall command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.