How To Install nekohtml on Fedora 34

nekohtml is HTML scanner and tag balancer

Introduction

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

What is nekohtml

NekoHTML is a simple HTML scanner and tag balancer that enables application programmers to parse HTML documents and access the information using standard XML interfaces. The parser can scan HTML files and “fix up” many common mistakes that human (and computer) authors make in writing HTML documents. NekoHTML adds missing parent elements; automatically closes elements with optional end tags; and can handle mismatched inline element tags. NekoHTML is written using the Xerces Native Interface (XNI) that is the foundation of the Xerces2 implementation. This enables you to use the NekoHTML parser with existing XNI tools without modification or rewriting code.

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

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

sudo dnf -y install nekohtml

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

sudo yum -y install nekohtml

How To Uninstall nekohtml on Fedora 34

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

sudo dnf remove nekohtml

nekohtml Package Contents on Fedora 34

/usr/bin/nekohtml-filter
/usr/share/doc/nekohtml
/usr/share/doc/nekohtml/LICENSE.txt
/usr/share/doc/nekohtml/README.txt
/usr/share/doc/nekohtml/changes.html
/usr/share/doc/nekohtml/faq.html
/usr/share/doc/nekohtml/filters.html
/usr/share/doc/nekohtml/index.html
/usr/share/doc/nekohtml/settings.html
/usr/share/doc/nekohtml/software.html
/usr/share/doc/nekohtml/usage.html
/usr/share/java/nekohtml-xni.jar
/usr/share/java/nekohtml.jar
/usr/share/maven-metadata/nekohtml.xml
/usr/share/maven-poms/nekohtml.pom

References

Summary

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