xmlformat command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xmlformat: command not found
or when using sudo you get the following error message
sudo: xmlformat: command not found
Solutions to xmlformat: command not found
How To Fix xmlformat: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xmlformat is provided by xmlformat-ruby package.
xmlformat-ruby is:
xmlformat is a configurable formatter (or “pretty-printer”) for XML documents. It provides control over indentation, line-breaking, and text wrapping. These properties can be defined on a per-element basis.
xmlformat provides improved diagnostic information when a document is not well-formed. (Prints line and token number, and stack trace).
This is the ruby implementation
To fix this problem, we can install more using the command below.
sudo apt-get -y install xmlformat-ruby
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install xmlformat-ruby.
sudo apt -y install xmlformat-ruby
Or if you have aptitude installed you can use the following command.
sudo aptitude install xmlformat-ruby
Summary
In this tutorial we learn how to fix xmlformat command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.