How To Install nodejs-xmldom on CentOS 7

In this tutorial we learn how to install nodejs-xmldom on CentOS 7. nodejs-xmldom is A W3C Standard XML DOM implementation and parser

Introduction

In this tutorial we learn how to install nodejs-xmldom on CentOS 7.

What is nodejs-xmldom

A JavaScript implementation of W3C DOM for Node.js, Rhino and the browser. Fully compatible with W3C DOM level2; and some compatible with level3. Supports DOMParser and XMLSerializer interface such as in browser.

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

Install nodejs-xmldom on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install nodejs-xmldom

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

sudo dnf -y install nodejs-xmldom

How To Uninstall nodejs-xmldom on CentOS 7

To uninstall only the nodejs-xmldom package we can use the following command:

sudo dnf remove nodejs-xmldom

References

Summary

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