How To Install xmlto on CentOS 8

xmlto is A tool for converting XML files to various formats

Introduction

In this tutorial we learn how to install xmlto on CentOS 8.

What is xmlto

This is a package for converting XML files to various formats using XSL stylesheets.

We can use yum or dnf to install xmlto on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install xmlto.

Install xmlto on CentOS 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install xmlto using dnf by running the following command:

sudo dnf -y install xmlto

Install xmlto on CentOS 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

CentOS Linux 8 - AppStream                                       43 kB/s | 4.3 kB     00:00    
CentOS Linux 8 - BaseOS                                          65 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - ContinuousRelease                               43 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - Extras                                          23 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - FastTrack                                       40 kB/s | 3.0 kB     00:00    
CentOS Linux 8 - HighAvailability                                36 kB/s | 3.9 kB     00:00    
CentOS Linux 8 - Plus                                            24 kB/s | 1.5 kB     00:00    
CentOS Linux 8 - PowerTools                                      50 kB/s | 4.3 kB     00:00    
Extra Packages for Enterprise Linux Modular 8 - x86_64           13 kB/s | 9.2 kB     00:00    
Extra Packages for Enterprise Linux 8 - x86_64                   24 kB/s | 8.5 kB     00:00    
Metadata cache created.

After updating yum database, We can install xmlto using yum by running the following command:

sudo yum -y install xmlto

How To Uninstall xmlto on CentOS 8

To uninstall only the xmlto package we can use the following command:

sudo dnf remove xmlto

xmlto Package Contents on CentOS 8

/usr/bin/xmlif
/usr/bin/xmlto
/usr/lib/.build-id
/usr/lib/.build-id/91
/usr/lib/.build-id/91/36ffdd43975f260e794fa7b1dc560629ff5b3f
/usr/share/doc/xmlto
/usr/share/doc/xmlto/AUTHORS
/usr/share/doc/xmlto/COPYING
/usr/share/doc/xmlto/ChangeLog
/usr/share/doc/xmlto/NEWS
/usr/share/doc/xmlto/README
/usr/share/man/man1/xmlif.1.gz
/usr/share/man/man1/xmlto.1.gz
/usr/share/xmlto
/usr/share/xmlto/format
/usr/share/xmlto/format/docbook
/usr/share/xmlto/format/docbook/awt
/usr/share/xmlto/format/docbook/dvi
/usr/share/xmlto/format/docbook/epub
/usr/share/xmlto/format/docbook/fo
/usr/share/xmlto/format/docbook/html
/usr/share/xmlto/format/docbook/html-nochunks
/usr/share/xmlto/format/docbook/htmlhelp
/usr/share/xmlto/format/docbook/javahelp
/usr/share/xmlto/format/docbook/man
/usr/share/xmlto/format/docbook/mif
/usr/share/xmlto/format/docbook/pcl
/usr/share/xmlto/format/docbook/pdf
/usr/share/xmlto/format/docbook/ps
/usr/share/xmlto/format/docbook/svg
/usr/share/xmlto/format/docbook/txt
/usr/share/xmlto/format/docbook/xhtml
/usr/share/xmlto/format/docbook/xhtml-nochunks
/usr/share/xmlto/format/fo
/usr/share/xmlto/format/fo/awt
/usr/share/xmlto/format/fo/mif
/usr/share/xmlto/format/fo/pcl
/usr/share/xmlto/format/fo/svg
/usr/share/xmlto/format/fo/txt
/usr/share/xmlto/xmlto.mak

References

Summary

In this tutorial we learn how to install xmlto on CentOS 8 using yum and dnf.