How To Install htmlcxx on Fedora 34

htmlcxx is A simple non-validating CSS1 and HTML parser for C++ A simple non-validating CSS1 and HTML parser for C++

Introduction

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

What is htmlcxx

htmlcxx is a simple non-validating html parser library for C++. It allows to fully dump the original html document, character by character, from the parse tree. It also has an intuitive tree traversal API. htmlcxx 0.86 14.fc34 x86_64 97 k htmlcxx-0.86-14.fc34.src.rpm fedora A simple non-validating CSS1 and HTML parser for C++ http LGPLv2 and GPLv2+ and ASL 2.0 and MIT htmlcxx is a simple non-validating html parser library for C++. It allows to fully dump the original html document, character by character, from the parse tree. It also has an intuitive tree traversal API.

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

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

sudo dnf -y install htmlcxx

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

sudo yum -y install htmlcxx

How To Uninstall htmlcxx on Fedora 34

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

sudo dnf remove htmlcxx

htmlcxx Package Contents on Fedora 34

/usr/bin/htmlcxx
/usr/lib/.build-id
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/5b0899f408bd8f406fdb1a1d38b2118cc4c1ee
/usr/lib/.build-id/73
/usr/lib/.build-id/73/8236947e18ae6cbdaa514955f71bda8c8683f3
/usr/lib/.build-id/87
/usr/lib/.build-id/87/91e4a34eb3c725efb91fc9f2fafffe95d11913
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/7e1a4de765c33354b803dae840688bd31c28a2
/usr/lib64/libcss_parser.so.0
/usr/lib64/libcss_parser.so.0.0.0
/usr/lib64/libcss_parser_pp.so.0
/usr/lib64/libcss_parser_pp.so.0.0.0
/usr/lib64/libhtmlcxx.so.3
/usr/lib64/libhtmlcxx.so.3.1.0
/usr/share/doc/htmlcxx
/usr/share/doc/htmlcxx/AUTHORS
/usr/share/doc/htmlcxx/ChangeLog
/usr/share/doc/htmlcxx/README
/usr/share/htmlcxx
/usr/share/htmlcxx/css
/usr/share/htmlcxx/css/default.css
/usr/share/licenses/htmlcxx
/usr/share/licenses/htmlcxx/ASF-2.0
/usr/share/licenses/htmlcxx/COPYING
/usr/share/licenses/htmlcxx/LGPL_V2
/usr/bin/htmlcxx
/usr/lib/.build-id
/usr/lib/.build-id/76
/usr/lib/.build-id/76/b3753709649b93f21e0b993f521d2425b1ad50
/usr/lib/.build-id/9f
/usr/lib/.build-id/9f/b4aea1ec901a9305bfa04791b255b277dd8125
/usr/lib/.build-id/d2
/usr/lib/.build-id/d2/f9aa14149b2d2990ce2c72f15176c16bba6e43
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/54cc1fa3abd0373eec2b57f3b04b3e3d8d0fa8
/usr/lib/libcss_parser.so.0
/usr/lib/libcss_parser.so.0.0.0
/usr/lib/libcss_parser_pp.so.0
/usr/lib/libcss_parser_pp.so.0.0.0
/usr/lib/libhtmlcxx.so.3
/usr/lib/libhtmlcxx.so.3.1.0
/usr/share/doc/htmlcxx
/usr/share/doc/htmlcxx/AUTHORS
/usr/share/doc/htmlcxx/ChangeLog
/usr/share/doc/htmlcxx/README
/usr/share/htmlcxx
/usr/share/htmlcxx/css
/usr/share/htmlcxx/css/default.css
/usr/share/licenses/htmlcxx
/usr/share/licenses/htmlcxx/ASF-2.0
/usr/share/licenses/htmlcxx/COPYING
/usr/share/licenses/htmlcxx/LGPL_V2

References

Summary

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