How To Install docbook-simple on CentOS 7

In this tutorial we learn how to install docbook-simple on CentOS 7. docbook-simple is Simplified DocBook is a small subset of the DocBook XML DTD

Introduction

In this tutorial we learn how to install docbook-simple on CentOS 7.

What is docbook-simple

Simplified DocBook is an attempt to provide a proper subset of DocBook that is simultaneously smaller and still useful. Documents written in the subset must be 100% legal DocBook documents. This is a subset for single documents (articles, white papers, etc.), so there’s no need for books or sets, just ‘articles’. Simplified DocBook documents are viewable in online browsers if styled with CSS. (it’s XML not SGML).

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

Install docbook-simple on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install docbook-simple using yum by running the following command:

sudo yum -y install docbook-simple

Install docbook-simple on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

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

sudo dnf -y install docbook-simple

How To Uninstall docbook-simple on CentOS 7

To uninstall only the docbook-simple package we can use the following command:

sudo dnf remove docbook-simple

References

Summary

In this tutorial we learn how to install docbook-simple on CentOS 7 using yum and dnf.