xml2yaml command not found
Introduction
When you run more command in linux terminal / console, you get the following error message
xml2yaml: command not found
or when using sudo you get the following error message
sudo: xml2yaml: command not found
Solutions to xml2yaml: command not found
How To Fix xml2yaml: command not found in Ubuntu / Debian / Kali Linux / Raspbian
In Ubuntu xml2yaml is provided by libxml-compile-perl package.
libxml-compile-perl is:
Many (professional) applications process XML messages based on a formal specification, expressed in XML Schemas. XML::Compile translates between XML and Perl with the help of such schemas. Your Perl program only handles a tree of nested HASHes and ARRAYs, and does not need to understand namespaces and other general XML and schema nastiness.
To fix this problem, we can install more using the command below.
sudo apt-get -y install libxml-compile-perl
This command might take some time to finish depending on your machine internet connection.
You can also use apt command to install libxml-compile-perl.
sudo apt -y install libxml-compile-perl
Or if you have aptitude installed you can use the following command.
sudo aptitude install libxml-compile-perl
Summary
In this tutorial we learn how to fix xml2yaml command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.