How To Install w3m on CentOS 7

In this tutorial we learn how to install w3m on CentOS 7. w3m is Pager with Web browsing abilities

Introduction

In this tutorial we learn how to install w3m on CentOS 7.

What is w3m

The w3m program is a pager (or text file viewer) that can also be used as a text-mode Web browser. W3m features include the following view images using an external image viewer; its internet message mode determines the type of document from the header; if the Content-Type field of the document is text/html, the document is displayed as an HTML document; you can change a URL description like ‘http If you want to display the inline images on w3m, you need to install w3m-img package as well.

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

Install w3m on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

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

sudo yum -y install w3m

Install w3m 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 w3m using dnf by running the following command:

sudo dnf -y install w3m

How To Uninstall w3m on CentOS 7

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

sudo dnf remove w3m

References

Summary

In this tutorial we learn how to install w3m on CentOS 7 using yum and dnf.