xmlsort command not found

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

Introduction

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

xmlsort: command not found

or when using sudo you get the following error message

sudo: xmlsort: command not found

Solutions to xmlsort: command not found

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

In Ubuntu xmlsort is provided by libxml-filter-sort-perl package.

libxml-filter-sort-perl is:

Perl SAX filter for sorting ‘records’ in XML documents (including documents larger than available memory).

Includes also the `xmlsort’ utility that can be used to sort an XML file from the command line without writing Perl code.

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

sudo apt-get -y install libxml-filter-sort-perl

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

You can also use apt command to install libxml-filter-sort-perl.

sudo apt -y install libxml-filter-sort-perl

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

sudo aptitude install libxml-filter-sort-perl

Summary

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