How To Install w3m on Fedora 34

w3m is Pager with Web browsing abilities

Introduction

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

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 reading an HTML document, you can follow links and 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 text into a link to that URL. 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 Fedora 34. In this tutorial we discuss both methods but you only need to choose one of method to install w3m.

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

sudo dnf -y install w3m

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

sudo yum -y install w3m

How To Uninstall w3m on Fedora 34

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

sudo dnf remove w3m

w3m Package Contents on Fedora 34

/etc/w3m
/etc/w3m/config
/usr/bin/w3m
/usr/bin/w3mman
/usr/lib/.build-id
/usr/lib/.build-id/58
/usr/lib/.build-id/58/493a2edaff1124d52c6f447e5e1d02d49b39dc
/usr/lib/.build-id/65
/usr/lib/.build-id/65/d98fcd7593aa963cbd15a67e02f3f8c466e3bf
/usr/lib/.build-id/94
/usr/lib/.build-id/94/41cc2a5a0e91094a4139b58042f4e02657be14
/usr/lib/.build-id/d6
/usr/lib/.build-id/d6/7b50206ef20aa80e71155049a47cb72b3bcf11
/usr/lib/.build-id/e4
/usr/lib/.build-id/e4/00cd12932ebb1a834fc3526e2b3d85977e3026
/usr/libexec/w3m
/usr/libexec/w3m/cgi-bin
/usr/libexec/w3m/cgi-bin/dirlist.cgi
/usr/libexec/w3m/cgi-bin/multipart.cgi
/usr/libexec/w3m/cgi-bin/w3mbookmark
/usr/libexec/w3m/cgi-bin/w3mdict.cgi
/usr/libexec/w3m/cgi-bin/w3mhelp.cgi
/usr/libexec/w3m/cgi-bin/w3mhelperpanel
/usr/libexec/w3m/cgi-bin/w3mmail.cgi
/usr/libexec/w3m/cgi-bin/w3mman2html.cgi
/usr/libexec/w3m/inflate
/usr/libexec/w3m/xface2xpm
/usr/share/doc/w3m
/usr/share/doc/w3m/ChangeLog
/usr/share/doc/w3m/NEWS
/usr/share/doc/w3m/README
/usr/share/doc/w3m/doc
/usr/share/doc/w3m/doc-de
/usr/share/doc/w3m/doc-de/FAQ.html
/usr/share/doc/w3m/doc-de/MANUAL.html
/usr/share/doc/w3m/doc-de/README.func
/usr/share/doc/w3m/doc-jp
/usr/share/doc/w3m/doc-jp/FAQ.html
/usr/share/doc/w3m/doc-jp/HISTORY
/usr/share/doc/w3m/doc-jp/MANUAL.html
/usr/share/doc/w3m/doc-jp/README
/usr/share/doc/w3m/doc-jp/README.SSL
/usr/share/doc/w3m/doc-jp/README.cookie
/usr/share/doc/w3m/doc-jp/README.cygwin
/usr/share/doc/w3m/doc-jp/README.dict
/usr/share/doc/w3m/doc-jp/README.func
/usr/share/doc/w3m/doc-jp/README.img
/usr/share/doc/w3m/doc-jp/README.keymap
/usr/share/doc/w3m/doc-jp/README.m17n
/usr/share/doc/w3m/doc-jp/README.mailcap
/usr/share/doc/w3m/doc-jp/README.menu
/usr/share/doc/w3m/doc-jp/README.migemo
/usr/share/doc/w3m/doc-jp/README.mouse
/usr/share/doc/w3m/doc-jp/README.passwd
/usr/share/doc/w3m/doc-jp/README.pre_form
/usr/share/doc/w3m/doc-jp/README.siteconf
/usr/share/doc/w3m/doc-jp/README.tab
/usr/share/doc/w3m/doc-jp/STORY.html
/usr/share/doc/w3m/doc-jp/keymap.default
/usr/share/doc/w3m/doc-jp/keymap.lynx
/usr/share/doc/w3m/doc-jp/menu.default
/usr/share/doc/w3m/doc-jp/menu.submenu
/usr/share/doc/w3m/doc/FAQ.html
/usr/share/doc/w3m/doc/HISTORY
/usr/share/doc/w3m/doc/MANUAL.html
/usr/share/doc/w3m/doc/README
/usr/share/doc/w3m/doc/README.cookie
/usr/share/doc/w3m/doc/README.cygwin
/usr/share/doc/w3m/doc/README.dict
/usr/share/doc/w3m/doc/README.func
/usr/share/doc/w3m/doc/README.img
/usr/share/doc/w3m/doc/README.m17n
/usr/share/doc/w3m/doc/README.mouse
/usr/share/doc/w3m/doc/README.passwd
/usr/share/doc/w3m/doc/README.pre_form
/usr/share/doc/w3m/doc/README.siteconf
/usr/share/doc/w3m/doc/README.sixel
/usr/share/doc/w3m/doc/README.tab
/usr/share/doc/w3m/doc/STORY.html
/usr/share/doc/w3m/doc/keymap.default
/usr/share/doc/w3m/doc/keymap.lynx
/usr/share/doc/w3m/doc/menu.default
/usr/share/doc/w3m/doc/menu.submenu
/usr/share/locale/de/LC_MESSAGES/w3m.mo
/usr/share/locale/ja/LC_MESSAGES/w3m.mo
/usr/share/locale/zh_CN/LC_MESSAGES/w3m.mo
/usr/share/locale/zh_TW/LC_MESSAGES/w3m.mo
/usr/share/man/de/man1/w3m.1.gz
/usr/share/man/de/man1/w3mman.1.gz
/usr/share/man/ja/man1/w3m.1.gz
/usr/share/man/man1/w3m.1.gz
/usr/share/man/man1/w3mman.1.gz
/usr/share/w3m
/usr/share/w3m/w3mhelp-funcdesc.de.pl
/usr/share/w3m/w3mhelp-funcdesc.en.pl
/usr/share/w3m/w3mhelp-funcdesc.ja.pl
/usr/share/w3m/w3mhelp-funcname.pl
/usr/share/w3m/w3mhelp.html

References

Summary

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