How To Install sgml-common on CentOS 8

sgml-common is Common SGML catalog and DTD files

Introduction

In this tutorial we learn how to install sgml-common on CentOS 8.

What is sgml-common

The sgml-common package contains a collection of entities and DTDs that are useful for processing SGML, but that don’t need to be included in multiple packages. Sgml-common also includes an up-to-date Open Catalog file.

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

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

sudo dnf -y install sgml-common

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

sudo yum -y install sgml-common

How To Uninstall sgml-common on CentOS 8

To uninstall only the sgml-common package we can use the following command:

sudo dnf remove sgml-common

sgml-common Package Contents on CentOS 8

/etc/sgml
/etc/sgml/catalog
/etc/sgml/sgml.conf
/usr/bin/install-catalog
/usr/bin/sgmlwhich
/usr/share/doc/sgml-common
/usr/share/doc/sgml-common/AUTHORS
/usr/share/doc/sgml-common/COPYING
/usr/share/doc/sgml-common/ChangeLog
/usr/share/doc/sgml-common/NEWS
/usr/share/doc/sgml-common/README
/usr/share/doc/sgml-common/html
/usr/share/doc/sgml-common/html/fdl.html
/usr/share/doc/sgml-common/html/index.html
/usr/share/doc/sgml-common/html/install-catalog.html
/usr/share/doc/sgml-common/html/introduction.html
/usr/share/man/man1/sgmlwhich.1.gz
/usr/share/man/man5/sgml.conf.5.gz
/usr/share/man/man8/install-catalog.8.gz
/usr/share/sgml
/usr/share/sgml/html.dcl
/usr/share/sgml/html.soc
/usr/share/sgml/sgml-iso-entities-8879.1986
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsa.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsb.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsc.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsn.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOamso.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOamsr.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISObox.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOcyr1.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOcyr2.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOdia.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOgrk1.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOgrk2.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOgrk3.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOgrk4.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOlat1.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOlat2.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOnum.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOpub.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/ISOtech.ent
/usr/share/sgml/sgml-iso-entities-8879.1986/catalog
/usr/share/sgml/xml.dcl
/usr/share/sgml/xml.soc

References

Summary

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