How To Install tidy on Fedora 34

tidy is Utility to clean up and pretty print HTML/XHTML/XML

Introduction

In this tutorial we learn how to install tidy on Fedora 34.

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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install tidy.

Install tidy on Fedora 34 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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

sudo dnf -y install tidy

Install tidy on Fedora 34 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

The output should look something like this:

Fedora 34 - x86_64                               20 kB/s | 6.6 kB     00:00
Fedora 34 openh264 (From Cisco) - x86_64        1.4 kB/s | 989  B     00:00
Fedora Modular 34 - x86_64                       68 kB/s | 6.5 kB     00:00
Fedora 34 - x86_64 - Updates                    3.5 kB/s | 6.2 kB     00:01
Fedora Modular 34 - x86_64 - Updates             17 kB/s | 5.9 kB     00:00
Metadata cache created.

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 Fedora 34

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

sudo dnf remove tidy

tidy Package Contents on Fedora 34

/usr/bin/tidy
/usr/lib/.build-id
/usr/lib/.build-id/16
/usr/lib/.build-id/16/9ff732325ba1b24fb3fa25a6530b9923829404
/usr/share/man/man1/tidy.1.gz

References

Summary

In this tutorial we learn how to install tidy on Fedora 34 using yum and dnf.