How To Install docbook-utils on CentOS 8
Introduction
In this tutorial we learn how to install docbook-utils on CentOS 8.
What is docbook-utils
This package contains scripts are for easy conversion from DocBook files to other formats (for example, HTML, RTF, and PostScript), and for comparing SGML files.
We can use yum or dnf to install docbook-utils on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install docbook-utils.
Install docbook-utils 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 docbook-utils using dnf by running the following command:
sudo dnf -y install docbook-utils
Install docbook-utils 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 docbook-utils using yum by running the following command:
sudo yum -y install docbook-utils
How To Uninstall docbook-utils on CentOS 8
To uninstall only the docbook-utils package we can use the following command:
sudo dnf remove docbook-utils
docbook-utils Package Contents on CentOS 8
/usr/bin/db2html
/usr/bin/db2rtf
/usr/bin/docbook2html
/usr/bin/docbook2man
/usr/bin/docbook2rtf
/usr/bin/docbook2tex
/usr/bin/docbook2texi
/usr/bin/docbook2txt
/usr/bin/jw
/usr/bin/sgmldiff
/usr/share/doc/docbook-utils
/usr/share/doc/docbook-utils/COPYING
/usr/share/doc/docbook-utils/README
/usr/share/doc/docbook-utils/TODO
/usr/share/man/man1/db2dvi.1.gz
/usr/share/man/man1/db2html.1.gz
/usr/share/man/man1/db2ps.1.gz
/usr/share/man/man1/db2rtf.1.gz
/usr/share/man/man1/docbook2html.1.gz
/usr/share/man/man1/docbook2man-spec.pl.1.gz
/usr/share/man/man1/docbook2man.1.gz
/usr/share/man/man1/docbook2rtf.1.gz
/usr/share/man/man1/docbook2tex.1.gz
/usr/share/man/man1/docbook2texi-spec.pl.1.gz
/usr/share/man/man1/docbook2texi.1.gz
/usr/share/man/man1/docbook2txt.1.gz
/usr/share/man/man1/jw.1.gz
/usr/share/man/man1/sgmldiff.1.gz
/usr/share/man/man7/backend-spec.7.gz
/usr/share/man/man7/frontend-spec.7.gz
/usr/share/sgml/docbook/utils-0.6.14
/usr/share/sgml/docbook/utils-0.6.14/backends
/usr/share/sgml/docbook/utils-0.6.14/backends/dvi
/usr/share/sgml/docbook/utils-0.6.14/backends/html
/usr/share/sgml/docbook/utils-0.6.14/backends/man
/usr/share/sgml/docbook/utils-0.6.14/backends/pdf
/usr/share/sgml/docbook/utils-0.6.14/backends/ps
/usr/share/sgml/docbook/utils-0.6.14/backends/rtf
/usr/share/sgml/docbook/utils-0.6.14/backends/tex
/usr/share/sgml/docbook/utils-0.6.14/backends/texi
/usr/share/sgml/docbook/utils-0.6.14/backends/txt
/usr/share/sgml/docbook/utils-0.6.14/docbook-utils.dsl
/usr/share/sgml/docbook/utils-0.6.14/frontends
/usr/share/sgml/docbook/utils-0.6.14/frontends/docbook
/usr/share/sgml/docbook/utils-0.6.14/helpers
/usr/share/sgml/docbook/utils-0.6.14/helpers/docbook2man-spec.pl
/usr/share/sgml/docbook/utils-0.6.14/helpers/docbook2texi-spec.pl
References
Summary
In this tutorial we learn how to install docbook-utils on CentOS 8 using yum and dnf.