How To Install ruby-html-proofer on Kali Linux

In this tutorial we learn how to install ruby-html-proofer on Kali Linux. ruby-html-proofer is Test your rendered HTML files to make sure theyre accurate

Introduction

In this tutorial we learn how to install ruby-html-proofer on Kali Linux.

What is ruby-html-proofer

ruby-html-proofer is:

HTMLProofer is a set of tests to validate your HTML output. These tests check if your image references are legitimate, if they have alt tags, if your internal links are working, and so on. It’s intended to be an all-in-one checker for your output.

In scope is any well-known and widely-used test for HTML document quality. A major use is continuous integration, so reliable results are a must have. Correctness is usually balanced over performance. And, if necessary, one should be able to trace this program’s detection of HTML errors back to documented best practices or standards, such as W3 specifications.

There are three methods to install ruby-html-proofer on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install ruby-html-proofer Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install ruby-html-proofer using apt-get by running the following command:

sudo apt-get -y install ruby-html-proofer

Install ruby-html-proofer Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install ruby-html-proofer using apt by running the following command:

sudo apt -y install ruby-html-proofer

Install ruby-html-proofer Using aptitude

If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install ruby-html-proofer using aptitude by running the following command:

sudo aptitude -y install ruby-html-proofer

How To Uninstall ruby-html-proofer on Kali Linux

To uninstall only the ruby-html-proofer package we can use the following command:

sudo apt-get remove ruby-html-proofer

Uninstall ruby-html-proofer And Its Dependencies

To uninstall ruby-html-proofer and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove ruby-html-proofer

Remove ruby-html-proofer Configurations and Data

To remove ruby-html-proofer configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge ruby-html-proofer

Remove ruby-html-proofer configuration, data, and all of its dependencies

We can use the following command to remove ruby-html-proofer configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge ruby-html-proofer

Dependencies

ruby-html-proofer have the following dependencies:

References

Summary

In this tutorial we learn how to install ruby-html-proofer package on Kali Linux using different package management tools: apt, apt-get and aptitude.