How To Install tidy on CentOS 7
Introduction
In this tutorial we learn how to install tidy
on CentOS 7.
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 CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install tidy.
Install tidy on CentOS 7 Using yum
Update yum database with yum
using the following command.
sudo yum makecache
After updating yum database, We can install tidy
using yum
by running the following command:
sudo yum -y install tidy
Install tidy 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 tidy
using dnf
by running the following command:
sudo dnf -y install tidy
How To Uninstall tidy on CentOS 7
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 CentOS 7 using yum
and dnf
.