xmlindent command not found

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

Introduction

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

xmlindent: command not found

or when using sudo you get the following error message

sudo: xmlindent: command not found

Solutions to xmlindent: command not found

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

In Ubuntu xmlindent is provided by xmlindent package.

xmlindent is:

XML Indent is a XML stream reformatter written in ANSI C. It is analogous to GNU indent.

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

sudo apt-get -y install xmlindent

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

You can also use apt command to install xmlindent.

sudo apt -y install xmlindent

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

sudo aptitude install xmlindent

Summary

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