How To Install varnish-modules on Rocky Linux 8

In this tutorial we learn how to install varnish-modules on Rocky Linux 8. varnish-modules is A collection of modules (“vmods”) extending Varnish VCL

Introduction

In this tutorial we learn how to install varnish-modules on Rocky Linux 8.

What is varnish-modules

This is a collection of modules (“vmods”) extending Varnish VCL used for describing HTTP request/response policies with additional capabilities. This collection contains the following vmods (previously kept individually) tcp, var, xkey

We can use yum or dnf to install varnish-modules on Rocky Linux 8. In this tutorial we discuss both methods but you only need to choose one of method to install varnish-modules.

Install varnish-modules on Rocky Linux 8 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

After updating yum database, We can install varnish-modules using dnf by running the following command:

sudo dnf -y install varnish-modules

Install varnish-modules on Rocky Linux 8 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install varnish-modules using yum by running the following command:

sudo yum -y install varnish-modules

How To Uninstall varnish-modules on Rocky Linux 8

To uninstall only the varnish-modules package we can use the following command:

sudo dnf remove varnish-modules

varnish-modules Package Contents on Rocky Linux 8

/usr/lib/.build-id
/usr/lib/.build-id/06
/usr/lib/.build-id/06/5263b17d3495fa6b739d12a4c38694dd351eef
/usr/lib/.build-id/0f
/usr/lib/.build-id/0f/8c122add94aac3cb6ec51448ff35ae4e911d28
/usr/lib/.build-id/24
/usr/lib/.build-id/24/0c41b4f6f1309c39ff769adb0e20c96d889c3a
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/0ab9eb5fa5a014ce7da7bd8750986c4ac0d4e5
/usr/lib/.build-id/8c
/usr/lib/.build-id/8c/9cea82b50ac8a9abfd13a6e2e94ed6f961c65b
/usr/lib/.build-id/b8
/usr/lib/.build-id/b8/8f52a0f1243644d05b6092cb2d01e2e0cfc68b
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/696caa1889fe824bcb5315bcacc520eb9bba30
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/21608b796f5dbf2b11a6f625a88de0286712ed
/usr/lib64/varnish/vmods/libvmod_bodyaccess.so
/usr/lib64/varnish/vmods/libvmod_cookie.so
/usr/lib64/varnish/vmods/libvmod_header.so
/usr/lib64/varnish/vmods/libvmod_saintmode.so
/usr/lib64/varnish/vmods/libvmod_tcp.so
/usr/lib64/varnish/vmods/libvmod_var.so
/usr/lib64/varnish/vmods/libvmod_vsthrottle.so
/usr/lib64/varnish/vmods/libvmod_xkey.so
/usr/share/doc/varnish-modules
/usr/share/doc/varnish-modules/AUTHORS
/usr/share/doc/varnish-modules/CHANGES.rst
/usr/share/doc/varnish-modules/COPYING
/usr/share/doc/varnish-modules/LICENSE
/usr/share/doc/varnish-modules/README.rst
/usr/share/doc/varnish-modules/docs
/usr/share/doc/varnish-modules/docs/vmod_cookie.rst
/usr/share/doc/varnish-modules/docs/vmod_header.rst
/usr/share/doc/varnish-modules/docs/vmod_saintmode.rst
/usr/share/doc/varnish-modules/docs/vmod_softpurge.rst
/usr/share/doc/varnish-modules/docs/vmod_tcp.rst
/usr/share/doc/varnish-modules/docs/vmod_var.rst
/usr/share/doc/varnish-modules/docs/vmod_vsthrottle.rst
/usr/share/doc/varnish-modules/docs/vmod_xkey.rst
/usr/share/licenses/varnish-modules
/usr/share/licenses/varnish-modules/LICENSE
/usr/share/man/man3/vmod_bodyaccess.3.gz
/usr/share/man/man3/vmod_cookie.3.gz
/usr/share/man/man3/vmod_header.3.gz
/usr/share/man/man3/vmod_saintmode.3.gz
/usr/share/man/man3/vmod_tcp.3.gz
/usr/share/man/man3/vmod_var.3.gz
/usr/share/man/man3/vmod_vsthrottle.3.gz
/usr/share/man/man3/vmod_xkey.3.gz
/usr/lib/.build-id
/usr/lib/.build-id/2f
/usr/lib/.build-id/2f/63d5fd1cea8a43100621a0f5230b0d8ffa7095
/usr/lib/.build-id/53
/usr/lib/.build-id/53/74f76e025e7cbf37388c4bb0cbdf3b4d675893
/usr/lib/.build-id/a2
/usr/lib/.build-id/a2/a9eedc5982e13465f07c4fa23aa7906e720eca
/usr/lib/.build-id/c3
/usr/lib/.build-id/c3/57ee937f24aa665be23b90486e946ee200b745
/usr/lib/.build-id/d8
/usr/lib/.build-id/d8/95f755e28ec412c655f2d7e2e89e76391116f5
/usr/lib/.build-id/e3
/usr/lib/.build-id/e3/fc918e6cb884479d34608bbbcfb619599436ae
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/82abdedc2c2669e89b0387f3843a5c33865729
/usr/lib/.build-id/f4
/usr/lib/.build-id/f4/a53b7544aa9bdcc82bf86a46f14740b8e5c6ce
/usr/lib64/varnish/vmods/libvmod_bodyaccess.so
/usr/lib64/varnish/vmods/libvmod_cookie.so
/usr/lib64/varnish/vmods/libvmod_header.so
/usr/lib64/varnish/vmods/libvmod_saintmode.so
/usr/lib64/varnish/vmods/libvmod_tcp.so
/usr/lib64/varnish/vmods/libvmod_var.so
/usr/lib64/varnish/vmods/libvmod_vsthrottle.so
/usr/lib64/varnish/vmods/libvmod_xkey.so
/usr/share/doc/varnish-modules
/usr/share/doc/varnish-modules/AUTHORS
/usr/share/doc/varnish-modules/CHANGES.rst
/usr/share/doc/varnish-modules/COPYING
/usr/share/doc/varnish-modules/LICENSE
/usr/share/doc/varnish-modules/README.rst
/usr/share/doc/varnish-modules/docs
/usr/share/doc/varnish-modules/docs/vmod_cookie.rst
/usr/share/doc/varnish-modules/docs/vmod_header.rst
/usr/share/doc/varnish-modules/docs/vmod_saintmode.rst
/usr/share/doc/varnish-modules/docs/vmod_softpurge.rst
/usr/share/doc/varnish-modules/docs/vmod_tcp.rst
/usr/share/doc/varnish-modules/docs/vmod_var.rst
/usr/share/doc/varnish-modules/docs/vmod_vsthrottle.rst
/usr/share/doc/varnish-modules/docs/vmod_xkey.rst
/usr/share/licenses/varnish-modules
/usr/share/licenses/varnish-modules/LICENSE
/usr/share/man/man3/vmod_bodyaccess.3.gz
/usr/share/man/man3/vmod_cookie.3.gz
/usr/share/man/man3/vmod_header.3.gz
/usr/share/man/man3/vmod_saintmode.3.gz
/usr/share/man/man3/vmod_tcp.3.gz
/usr/share/man/man3/vmod_var.3.gz
/usr/share/man/man3/vmod_vsthrottle.3.gz
/usr/share/man/man3/vmod_xkey.3.gz

References

Summary

In this tutorial we learn how to install varnish-modules on Rocky Linux 8 using yum and dnf.