xmltex command not found

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

Introduction

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

xmltex: command not found

or when using sudo you get the following error message

sudo: xmltex: command not found

Solutions to xmltex: command not found

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

In Ubuntu xmltex is provided by texlive-formats-extra package.

texlive-formats-extra is:

Collected TeX `formats’, i.e., large-scale macro packages designed to be dumped into .fmt files – excluding the most common ones, such as latex and context, which have their own package(s). It also includes the Aleph engine and related Omega formats and packages.

This package includes the following CTAN packages:

aleph – Extended TeX

antomega – Alternative language support for Omega/Lambda

edmac – Typeset critical editions

eplain – Extended plain TeX macros

jadetex – Macros supporting Jade DSSSL output

lambda – LaTeX format based on the Omega engine.

lollipop – TeX made easy

mltex – The MLTeX system

mxedruli – A pair of fonts for different Georgian alphabets

omega – A wide-character-set extension of TeX

omegaware – A wide-character-set extension of TeX

otibet – support for Tibetan using Omega

passivetex – Support package for XML/SGML typesetting

psizzl – A TeX format for physics papers

startex – An XML-inspired format for student use

texsis – Plain TeX macros for Physicists

xmltex – Support for parsing XML documents

xmltexconfig – configuration files for xmltex and pdfxmltex

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

sudo apt-get -y install texlive-formats-extra

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

You can also use apt command to install texlive-formats-extra.

sudo apt -y install texlive-formats-extra

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

sudo aptitude install texlive-formats-extra

Summary

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