perltidy command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
perltidy: command not found
or when using sudo you get the following error message
sudo: perltidy: command not found
Solutions to perltidy: command not found
How To Fix perltidy: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu perltidy is provided by perltidy package.
perltidy is:
Perltidy is a Perl script which indents and reformats Perl scripts to make them easier to read.
The formatting can be controlled with command line parameters. The default parameter settings approximately follow the suggestions in the Perl Style Guide.
Perltidy can also generate formatted HTML output from POD, and can even generate colored output in HTML for scripts. See examples at http://perltidy.sourceforge.net/
To fix this problem, we can install more using the command below.
sudo apt-get -y install perltidy
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install perltidy.
sudo apt -y install perltidy
Or if you have aptitude installed you can use the following command.
sudo aptitude install perltidy
Summary
In this tutorial we learn how to fix perltidy command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.