How To Install perl-WWW-Mechanize-GZip on CentOS 7

In this tutorial we learn how to install perl-WWW-Mechanize-GZip on CentOS 7. perl-WWW-Mechanize-GZip is Fetch compressed web pages

Introduction

In this tutorial we learn how to install perl-WWW-Mechanize-GZip on CentOS 7.

What is perl-WWW-Mechanize-GZip

The WWW gzip-compression from the web server. If the response contains a header with ‘Content-Encoding response in order to get the original (uncompressed) content. This module will help to reduce bandwidth fetching web pages, if supported by the web server. If the web server does not support gzip-compression, no decompression will be made.

We can use yum or dnf to install perl-WWW-Mechanize-GZip on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install perl-WWW-Mechanize-GZip.

Install perl-WWW-Mechanize-GZip on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install perl-WWW-Mechanize-GZip using yum by running the following command:

sudo yum -y install perl-WWW-Mechanize-GZip

Install perl-WWW-Mechanize-GZip 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 perl-WWW-Mechanize-GZip using dnf by running the following command:

sudo dnf -y install perl-WWW-Mechanize-GZip

How To Uninstall perl-WWW-Mechanize-GZip on CentOS 7

To uninstall only the perl-WWW-Mechanize-GZip package we can use the following command:

sudo dnf remove perl-WWW-Mechanize-GZip

References

Summary

In this tutorial we learn how to install perl-WWW-Mechanize-GZip on CentOS 7 using yum and dnf.