How To Install xhtml1-dtds on CentOS 8

xhtml1-dtds is XHTML 1.0 document type definitions

Introduction

In this tutorial we learn how to install xhtml1-dtds on CentOS 8.

What is xhtml1-dtds

This provides the DTDs of the Second Edition of XHTML 1.0, a reformulation of HTML 4 as an XML 1.0 application, and three DTDs corresponding to the ones defined by HTML 4. The semantics of the elements and their attributes are defined in the W3C Recommendation for HTML 4. These semantics provide the foundation for future extensibility of XHTML.

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

Install xhtml1-dtds 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 xhtml1-dtds using dnf by running the following command:

sudo dnf -y install xhtml1-dtds

Install xhtml1-dtds 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 xhtml1-dtds using yum by running the following command:

sudo yum -y install xhtml1-dtds

How To Uninstall xhtml1-dtds on CentOS 8

To uninstall only the xhtml1-dtds package we can use the following command:

sudo dnf remove xhtml1-dtds

xhtml1-dtds Package Contents on CentOS 8

/etc/sgml/xhtml1-dtds-1.0-20020801.13.el8.4.soc
/etc/sgml/xhtml1-dtds.soc
/etc/xml/xhtml1-dtds-1.0-20020801.13.el8.4.xml
/etc/xml/xhtml1-dtds.xml
/usr/share/xml/xhtml
/usr/share/xml/xhtml/1.0
/usr/share/xml/xhtml/1.0/catalog.xml
/usr/share/xml/xhtml/1.0/xhtml-lat1.ent
/usr/share/xml/xhtml/1.0/xhtml-special.ent
/usr/share/xml/xhtml/1.0/xhtml-symbol.ent
/usr/share/xml/xhtml/1.0/xhtml.soc
/usr/share/xml/xhtml/1.0/xhtml1-frameset.dtd
/usr/share/xml/xhtml/1.0/xhtml1-strict.dtd
/usr/share/xml/xhtml/1.0/xhtml1-transitional.dtd
/usr/share/xml/xhtml/1.0/xhtml1.dcl

References

Summary

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