How To Install tidy on Rocky Linux 8

In this tutorial we learn how to install tidy on Rocky Linux 8. tidy is Utility to clean up and pretty print HTML/XHTML/XML

Introduction

In this tutorial we learn how to install tidy on Rocky Linux 8.

What is tidy

When editing HTML it’s easy to make mistakes. Wouldn’t it be nice if there was a simple way to fix these mistakes automatically and tidy up sloppy editing into nicely laid out markup? Well now there is! Dave Raggett’s HTML TIDY is a free utility for doing just that. It also works great on the atrociously hard to read markup generated by specialized HTML editors and conversion tools, and can help you identify where you need to pay further attention on making your pages more accessible to people with disabilities.

We can use yum or dnf to install tidy on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install tidy.

Install tidy on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install tidy

Install tidy on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install tidy using yum by running the following command:

sudo yum -y install tidy

How To Uninstall tidy on Rocky Linux 8

To uninstall only the tidy package we can use the following command:

sudo dnf remove tidy

tidy Package Contents on Rocky Linux 8

/usr/bin/tidy
/usr/lib/.build-id
/usr/lib/.build-id/b5
/usr/lib/.build-id/b5/641114e5ed26a04715e1f540fdca2ce4eabae9
/usr/share/man/man1/tidy.1.gz

References

Summary

In this tutorial we learn how to install tidy on Rocky Linux 8 using yum and dnf.