How To Install tidy on AlmaLinux 8

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

Introduction

In this tutorial we learn how to install tidy on AlmaLinux 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 AlmaLinux 8. In this tutorial we discuss both methods but you only need to choose one of method to install tidy.

Install tidy on AlmaLinux 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 AlmaLinux 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 AlmaLinux 8

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

sudo dnf remove tidy

References

Summary

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