How To Install xhtml1-dtds.noarch on Amazon Linux 2

In this tutorial we learn how to install xhtml1-dtds.noarch in Amazon Linux 2. xhtml1-dtds.noarch is XHTML 1.0 document type definitions

Introduction

In this tutorial we learn how to install xhtml1-dtds.noarch on Amazon Linux 2.

What is xhtml1-dtds.noarch

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 to install xhtml1-dtds.noarch on Amazon Linux 2. In this tutorial we discuss both methods but you only need to choose one of method to install xhtml1-dtds.noarch.

Install xhtml1-dtds.noarch on Amazon Linux 2 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install xhtml1-dtds.noarch using yum by running the following command:

sudo yum -y install xhtml1-dtds.noarch

How To Uninstall xhtml1-dtds.noarch on Amazon Linux 2

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

sudo yum remove xhtml1-dtds.noarch

xhtml1-dtds.noarch Package Contents on Amazon Linux 2

/etc/sgml/xhtml1-dtds-1.0-20020801.11.amzn2.soc
/etc/sgml/xhtml1-dtds.soc
/etc/xml/xhtml1-dtds-1.0-20020801.11.amzn2.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.noarch on Amazon Linux 2 using yum.