How To Install mod_proxy_html on Fedora 34

mod_proxy_html is HTML and XML content filters for the Apache HTTP Server

Introduction

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

What is mod_proxy_html

The mod_proxy_html and mod_xml2enc modules provide filters which can transform and modify HTML and XML content.

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

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

sudo dnf -y install mod_proxy_html

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

sudo yum -y install mod_proxy_html

How To Uninstall mod_proxy_html on Fedora 34

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

sudo dnf remove mod_proxy_html

mod_proxy_html Package Contents on Fedora 34

/etc/httpd/conf.modules.d/00-proxyhtml.conf
/usr/lib/.build-id
/usr/lib/.build-id/3b/98c83c52642e4c24c5c9e0fb0127a2a133b9cb
/usr/lib/.build-id/b7/fc42fbf96a0e285592e7dba8a428650ea4b89c
/usr/lib64/httpd/modules/mod_proxy_html.so
/usr/lib64/httpd/modules/mod_xml2enc.so
/etc/httpd/conf.modules.d/00-proxyhtml.conf
/usr/lib/.build-id
/usr/lib/.build-id/5d/61f380a946bf69bcd786b1ce82b5cbf8236fff
/usr/lib/.build-id/9e/dea35d50d020816ad0c9e51af0ed4f5261e011
/usr/lib64/httpd/modules/mod_proxy_html.so
/usr/lib64/httpd/modules/mod_xml2enc.so

References

Summary

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