How To Install varnish on Fedora 34

varnish is High-performance HTTP accelerator High-performance HTTP accelerator

Introduction

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

What is varnish

This is Varnish Cache, a high-performance HTTP accelerator. Varnish Cache stores web pages in memory so web servers don’t have to create the same web page over and over again. Varnish Cache serves pages much faster than any application server; giving the website a significant speed up. Documentation wiki and additional information about Varnish Cache is available on varnish 6.5.2 1.fc34 x86_64 1.4 M varnish-6.5.2-1.fc34.src.rpm updates High-performance HTTP accelerator https BSD This is Varnish Cache, a high-performance HTTP accelerator. Varnish Cache stores web pages in memory so web servers don’t have to create the same web page over and over again. Varnish Cache serves pages much faster than any application server; giving the website a significant speed up. Documentation wiki and additional information about Varnish Cache is available on

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

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

sudo dnf -y install varnish

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

sudo yum -y install varnish

How To Uninstall varnish on Fedora 34

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

sudo dnf remove varnish

varnish Package Contents on Fedora 34

/etc/ld.so.conf.d/varnish-i386.conf
/etc/logrotate.d/varnish
/etc/varnish
/etc/varnish/default.vcl
/usr/bin/varnishadm
/usr/bin/varnishhist
/usr/bin/varnishlog
/usr/bin/varnishncsa
/usr/bin/varnishstat
/usr/bin/varnishstat_help_gen
/usr/bin/varnishtest
/usr/bin/varnishtop
/usr/lib/.build-id
/usr/lib/.build-id/08
/usr/lib/.build-id/08/467f44a20e16da748b408e3a8a15e4822e8753
/usr/lib/.build-id/11
/usr/lib/.build-id/11/cab47f8cde2dab93a2af820a72e4a71f8cdf56
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/8d9103b126193d90c55d74a0d52983aca973bf
/usr/lib/.build-id/22
/usr/lib/.build-id/22/45b588da694f18e50c14c5f07bab952326a9be
/usr/lib/.build-id/35
/usr/lib/.build-id/35/e0c7c09c44e1a5ab528cc149a0e441bc6feb6b
/usr/lib/.build-id/37
/usr/lib/.build-id/37/6857aa8bfbe244c6cfe333da86dabb53d15bad
/usr/lib/.build-id/5f
/usr/lib/.build-id/5f/c2f579dff7aecbabda916c5e70d5bda3d4faa9
/usr/lib/.build-id/89
/usr/lib/.build-id/89/b873b81ff84ee698c294a6deb49e695b7be2b5
/usr/lib/.build-id/8a
/usr/lib/.build-id/8a/b0a052180a2b35a4a4120edf5f8a745ece7a4b
/usr/lib/.build-id/91
/usr/lib/.build-id/91/c62533b4a43dfd886a34bd5eb263f63c65d700
/usr/lib/.build-id/93
/usr/lib/.build-id/93/b64066ecd1a2430b5b8e87f195365cc5f2a81d
/usr/lib/.build-id/97
/usr/lib/.build-id/97/418779aa5e1fb76cd5c97629c5ce307c39e44f
/usr/lib/.build-id/9a
/usr/lib/.build-id/9a/0813aca1d062a7573b017cad3ebc84a77415e2
/usr/lib/.build-id/ce
/usr/lib/.build-id/ce/3a33a58c66c271411dfdb60ba7df64a8923a2b
/usr/lib/.build-id/d9
/usr/lib/.build-id/d9/1ac2567b1b07d395461b990a8c81cdc4226603
/usr/lib/.build-id/da
/usr/lib/.build-id/da/e7ba612c6796b5131097f846dc62000e20f576
/usr/lib/.build-id/dd
/usr/lib/.build-id/dd/6051b1d126cdff390fd3d16717c31da21fcafc
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/041d359af8405eeb6501a763c0e1a46fba7e24
/usr/lib/.build-id/f5
/usr/lib/.build-id/f5/e947a93c96b8f8b9f564fd8e4515936ef1ba6f
/usr/lib/libvarnishapi.so.2
/usr/lib/libvarnishapi.so.2.0.0
/usr/lib/systemd/system/varnish.service
/usr/lib/systemd/system/varnishncsa.service
/usr/lib/varnish
/usr/lib/varnish/vmods
/usr/lib/varnish/vmods/libvmod_blob.so
/usr/lib/varnish/vmods/libvmod_cookie.so
/usr/lib/varnish/vmods/libvmod_debug.so
/usr/lib/varnish/vmods/libvmod_directors.so
/usr/lib/varnish/vmods/libvmod_proxy.so
/usr/lib/varnish/vmods/libvmod_purge.so
/usr/lib/varnish/vmods/libvmod_std.so
/usr/lib/varnish/vmods/libvmod_unix.so
/usr/lib/varnish/vmods/libvmod_vtc.so
/usr/sbin/varnishd
/usr/sbin/varnishreload
/usr/share/doc/varnish
/usr/share/doc/varnish/ChangeLog
/usr/share/doc/varnish/README.rst
/usr/share/doc/varnish/builtin.vcl
/usr/share/doc/varnish/example.vcl
/usr/share/licenses/varnish
/usr/share/licenses/varnish/LICENSE
/usr/share/man/man1/varnishadm.1.gz
/usr/share/man/man1/varnishd.1.gz
/usr/share/man/man1/varnishhist.1.gz
/usr/share/man/man1/varnishlog.1.gz
/usr/share/man/man1/varnishncsa.1.gz
/usr/share/man/man1/varnishstat.1.gz
/usr/share/man/man1/varnishtest.1.gz
/usr/share/man/man1/varnishtop.1.gz
/usr/share/man/man3/vmod_blob.3.gz
/usr/share/man/man3/vmod_cookie.3.gz
/usr/share/man/man3/vmod_directors.3.gz
/usr/share/man/man3/vmod_proxy.3.gz
/usr/share/man/man3/vmod_purge.3.gz
/usr/share/man/man3/vmod_std.3.gz
/usr/share/man/man3/vmod_unix.3.gz
/usr/share/man/man3/vmod_vtc.3.gz
/usr/share/man/man7/varnish-cli.7.gz
/usr/share/man/man7/varnish-counters.7.gz
/usr/share/man/man7/vcl.7.gz
/usr/share/man/man7/vsl-query.7.gz
/usr/share/man/man7/vsl.7.gz
/usr/share/man/man7/vtc.7.gz
/var/lib/varnish
/var/log/varnish
/etc/ld.so.conf.d/varnish-i386.conf
/etc/logrotate.d/varnish
/etc/varnish
/etc/varnish/default.vcl
/usr/bin/varnishadm
/usr/bin/varnishhist
/usr/bin/varnishlog
/usr/bin/varnishncsa
/usr/bin/varnishstat
/usr/bin/varnishstat_help_gen
/usr/bin/varnishtest
/usr/bin/varnishtop
/usr/lib/.build-id
/usr/lib/.build-id/1d
/usr/lib/.build-id/1d/87977ed381fd3ee58abb1b06579a730424e554
/usr/lib/.build-id/33
/usr/lib/.build-id/33/14b8b2ffff62ffa8d24937a3bca2f0b65e475e
/usr/lib/.build-id/50
/usr/lib/.build-id/50/62da4940636ba94ef4c21648e764a2281ddcd7
/usr/lib/.build-id/57
/usr/lib/.build-id/57/282784850ae6c5f21e51c27481c3d114228971
/usr/lib/.build-id/65
/usr/lib/.build-id/65/7da1734b783438de2c3dd39f1e294e7d62978e
/usr/lib/.build-id/6f
/usr/lib/.build-id/6f/63c9ce60b9f0127e84e17852d8fceff1691506
/usr/lib/.build-id/80
/usr/lib/.build-id/80/53f7c31907a78b073b35c27f2361c61223c37f
/usr/lib/.build-id/83
/usr/lib/.build-id/83/c967f23775de33822bc7af73ddbc273195a33f
/usr/lib/.build-id/89
/usr/lib/.build-id/89/648494a0734281def28a3f2b8b1840ef4de300
/usr/lib/.build-id/92
/usr/lib/.build-id/92/e6c72c2c9d74ac40ff0cd26d31108bf2204a05
/usr/lib/.build-id/9c
/usr/lib/.build-id/9c/553c48fa063eca66ae200a0f7daf120eda03fa
/usr/lib/.build-id/c4
/usr/lib/.build-id/c4/ca822195db375483131923f48e70eb4e07f06d
/usr/lib/.build-id/d7
/usr/lib/.build-id/d7/5786bf130c56df4627d749794b7b5c1a0dbdb9
/usr/lib/.build-id/e0
/usr/lib/.build-id/e0/3956d9427711aa73f0b3eb1d528753d0e46ea2
/usr/lib/.build-id/e1
/usr/lib/.build-id/e1/00c017a9132ddaf1a7f45829de93a5a6589ba1
/usr/lib/.build-id/e5
/usr/lib/.build-id/e5/0b5725bbb3538af6c14bdb8f3314c5f592d4ca
/usr/lib/.build-id/e8
/usr/lib/.build-id/e8/7ce4cc706f44a02e100ff71442c38d94e7409a
/usr/lib/.build-id/f3
/usr/lib/.build-id/f3/1eb3ade0247d8d47a8f8b99a4e351f995e5644
/usr/lib/.build-id/fc
/usr/lib/.build-id/fc/38ab544f6defaba46ae0adc52c4a55f917485c
/usr/lib/libvarnishapi.so.2
/usr/lib/libvarnishapi.so.2.0.0
/usr/lib/systemd/system/varnish.service
/usr/lib/systemd/system/varnishncsa.service
/usr/lib/varnish
/usr/lib/varnish/vmods
/usr/lib/varnish/vmods/libvmod_blob.so
/usr/lib/varnish/vmods/libvmod_cookie.so
/usr/lib/varnish/vmods/libvmod_debug.so
/usr/lib/varnish/vmods/libvmod_directors.so
/usr/lib/varnish/vmods/libvmod_proxy.so
/usr/lib/varnish/vmods/libvmod_purge.so
/usr/lib/varnish/vmods/libvmod_std.so
/usr/lib/varnish/vmods/libvmod_unix.so
/usr/lib/varnish/vmods/libvmod_vtc.so
/usr/sbin/varnishd
/usr/sbin/varnishreload
/usr/share/doc/varnish
/usr/share/doc/varnish/ChangeLog
/usr/share/doc/varnish/README.rst
/usr/share/doc/varnish/builtin.vcl
/usr/share/doc/varnish/example.vcl
/usr/share/licenses/varnish
/usr/share/licenses/varnish/LICENSE
/usr/share/man/man1/varnishadm.1.gz
/usr/share/man/man1/varnishd.1.gz
/usr/share/man/man1/varnishhist.1.gz
/usr/share/man/man1/varnishlog.1.gz
/usr/share/man/man1/varnishncsa.1.gz
/usr/share/man/man1/varnishstat.1.gz
/usr/share/man/man1/varnishtest.1.gz
/usr/share/man/man1/varnishtop.1.gz
/usr/share/man/man3/vmod_blob.3.gz
/usr/share/man/man3/vmod_cookie.3.gz
/usr/share/man/man3/vmod_directors.3.gz
/usr/share/man/man3/vmod_proxy.3.gz
/usr/share/man/man3/vmod_purge.3.gz
/usr/share/man/man3/vmod_std.3.gz
/usr/share/man/man3/vmod_unix.3.gz
/usr/share/man/man3/vmod_vtc.3.gz
/usr/share/man/man7/varnish-cli.7.gz
/usr/share/man/man7/varnish-counters.7.gz
/usr/share/man/man7/vcl.7.gz
/usr/share/man/man7/vsl-query.7.gz
/usr/share/man/man7/vsl.7.gz
/usr/share/man/man7/vtc.7.gz
/var/lib/varnish
/var/log/varnish
/etc/ld.so.conf.d/varnish-x86_64.conf
/etc/logrotate.d/varnish
/etc/varnish
/etc/varnish/default.vcl
/usr/bin/varnishadm
/usr/bin/varnishhist
/usr/bin/varnishlog
/usr/bin/varnishncsa
/usr/bin/varnishstat
/usr/bin/varnishstat_help_gen
/usr/bin/varnishtest
/usr/bin/varnishtop
/usr/lib/.build-id
/usr/lib/.build-id/03
/usr/lib/.build-id/03/0437ba83f8a4f959589ed2c9b40fabd3f8a01b
/usr/lib/.build-id/0d
/usr/lib/.build-id/0d/5b6661ca6f9e84450706e0a758d8f99b67c0cb
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/226de5015950fbfda6d954420724eaf4c93eec
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/5c054160202e1e3fe9a365d72a6163270401ba
/usr/lib/.build-id/5e
/usr/lib/.build-id/5e/0b7ea965cdefc6dc6b27d175797ff730e9428b
/usr/lib/.build-id/66
/usr/lib/.build-id/66/ee34ee0508845319d9482aba4286c1eb89fbce
/usr/lib/.build-id/6c
/usr/lib/.build-id/6c/69ccad235b94f3645d1ab4e67f5b0664675dab
/usr/lib/.build-id/79
/usr/lib/.build-id/79/04d21c5ee9f9670b6ec0b9e461062ff260cea3
/usr/lib/.build-id/7c
/usr/lib/.build-id/7c/5443c5ed31ec1f3bc2b3336a7b3113b53dd58a
/usr/lib/.build-id/7d
/usr/lib/.build-id/7d/780eb60e459fab0ea164d9361c3ea5304f0a1e
/usr/lib/.build-id/82
/usr/lib/.build-id/82/2b32b01b82f7135e673e745e37fc1d7a37a1c5
/usr/lib/.build-id/8e
/usr/lib/.build-id/8e/8a400e08cd0c5ec775abb5eefa1d6d230ba6b8
/usr/lib/.build-id/97
/usr/lib/.build-id/97/336ba7876f3c5bd331b53ce51a17ba5a8c51d2
/usr/lib/.build-id/aa
/usr/lib/.build-id/aa/87f7f0468cbd245ce1d98a3929580d1f6807a0
/usr/lib/.build-id/b6
/usr/lib/.build-id/b6/c29c2a8c1e497088f6c215eb310f41cdaa7250
/usr/lib/.build-id/db
/usr/lib/.build-id/db/3ef72826bf0775ded31a0128ce7d31213fd908
/usr/lib/.build-id/ed
/usr/lib/.build-id/ed/a1ddc0311d1401dd610231f19393a76debd904
/usr/lib/.build-id/ed/b387704ae8d9c25e527c16ffcce7f7ef308262
/usr/lib/.build-id/f7
/usr/lib/.build-id/f7/bb170b88c5cfa03480208797a79a166301d74e
/usr/lib/systemd/system/varnish.service
/usr/lib/systemd/system/varnishncsa.service
/usr/lib64/libvarnishapi.so.2
/usr/lib64/libvarnishapi.so.2.0.0
/usr/lib64/varnish
/usr/lib64/varnish/vmods
/usr/lib64/varnish/vmods/libvmod_blob.so
/usr/lib64/varnish/vmods/libvmod_cookie.so
/usr/lib64/varnish/vmods/libvmod_debug.so
/usr/lib64/varnish/vmods/libvmod_directors.so
/usr/lib64/varnish/vmods/libvmod_proxy.so
/usr/lib64/varnish/vmods/libvmod_purge.so
/usr/lib64/varnish/vmods/libvmod_std.so
/usr/lib64/varnish/vmods/libvmod_unix.so
/usr/lib64/varnish/vmods/libvmod_vtc.so
/usr/sbin/varnishd
/usr/sbin/varnishreload
/usr/share/doc/varnish
/usr/share/doc/varnish/ChangeLog
/usr/share/doc/varnish/README.rst
/usr/share/doc/varnish/builtin.vcl
/usr/share/doc/varnish/example.vcl
/usr/share/licenses/varnish
/usr/share/licenses/varnish/LICENSE
/usr/share/man/man1/varnishadm.1.gz
/usr/share/man/man1/varnishd.1.gz
/usr/share/man/man1/varnishhist.1.gz
/usr/share/man/man1/varnishlog.1.gz
/usr/share/man/man1/varnishncsa.1.gz
/usr/share/man/man1/varnishstat.1.gz
/usr/share/man/man1/varnishtest.1.gz
/usr/share/man/man1/varnishtop.1.gz
/usr/share/man/man3/vmod_blob.3.gz
/usr/share/man/man3/vmod_cookie.3.gz
/usr/share/man/man3/vmod_directors.3.gz
/usr/share/man/man3/vmod_proxy.3.gz
/usr/share/man/man3/vmod_purge.3.gz
/usr/share/man/man3/vmod_std.3.gz
/usr/share/man/man3/vmod_unix.3.gz
/usr/share/man/man3/vmod_vtc.3.gz
/usr/share/man/man7/varnish-cli.7.gz
/usr/share/man/man7/varnish-counters.7.gz
/usr/share/man/man7/vcl.7.gz
/usr/share/man/man7/vsl-query.7.gz
/usr/share/man/man7/vsl.7.gz
/usr/share/man/man7/vtc.7.gz
/var/lib/varnish
/var/log/varnish
/etc/ld.so.conf.d/varnish-x86_64.conf
/etc/logrotate.d/varnish
/etc/varnish
/etc/varnish/default.vcl
/usr/bin/varnishadm
/usr/bin/varnishhist
/usr/bin/varnishlog
/usr/bin/varnishncsa
/usr/bin/varnishstat
/usr/bin/varnishstat_help_gen
/usr/bin/varnishtest
/usr/bin/varnishtop
/usr/lib/.build-id
/usr/lib/.build-id/1a
/usr/lib/.build-id/1a/97b4d876a88e6f16b6bae064943e2acaca6b25
/usr/lib/.build-id/34
/usr/lib/.build-id/34/22912aac85ba5af2e0599d2e4ef8c942e014c8
/usr/lib/.build-id/4c
/usr/lib/.build-id/4c/734939535b4e624fd919ca90d2b2b659095bda
/usr/lib/.build-id/55
/usr/lib/.build-id/55/2f9e2b14c6c0a2b73b6636b5e7a12527c15b19
/usr/lib/.build-id/59
/usr/lib/.build-id/59/dae83fd31d9de94920b7a06124084a633f4e49
/usr/lib/.build-id/6d
/usr/lib/.build-id/6d/9ce8dcf9b4cafef7918acad0eec863381c5846
/usr/lib/.build-id/80
/usr/lib/.build-id/80/716c05e6f2a4481bb0bc2c210a5b816b663726
/usr/lib/.build-id/98
/usr/lib/.build-id/98/d640fa587a078860a53432863ae51497f5a978
/usr/lib/.build-id/99
/usr/lib/.build-id/99/612e6408f53fd5dd27e8db8495480a698b9e88
/usr/lib/.build-id/a8
/usr/lib/.build-id/a8/310ac8b8827c0f3bd758ce000be796ad39f176
/usr/lib/.build-id/a8/4042785e3fb808f74e9979604ac21a7e9f1007
/usr/lib/.build-id/c8
/usr/lib/.build-id/c8/4c049852d6934829859963c7a8c84921b988f4
/usr/lib/.build-id/ca
/usr/lib/.build-id/ca/a26dcf8b7d2a5b16d8bbbd0b5d9c6a0a54399e
/usr/lib/.build-id/d4
/usr/lib/.build-id/d4/c639b965ef1466741ba2e0ed76b24fc6a6723b
/usr/lib/.build-id/e9
/usr/lib/.build-id/e9/72339f10496172a61a395bdf4fdc33375bc0dd
/usr/lib/.build-id/f0
/usr/lib/.build-id/f0/503693ef57a4a20027ae3f2b216861a8971cae
/usr/lib/.build-id/f0/6816e1e01a86098b30afab1b7240dc5453346f
/usr/lib/.build-id/fb
/usr/lib/.build-id/fb/b643804f35bdf1d5fe62b0c1b31c92b042504f
/usr/lib/.build-id/fb/ff4109a28c3393b72ae22529c26e9895febbab
/usr/lib/systemd/system/varnish.service
/usr/lib/systemd/system/varnishncsa.service
/usr/lib64/libvarnishapi.so.2
/usr/lib64/libvarnishapi.so.2.0.0
/usr/lib64/varnish
/usr/lib64/varnish/vmods
/usr/lib64/varnish/vmods/libvmod_blob.so
/usr/lib64/varnish/vmods/libvmod_cookie.so
/usr/lib64/varnish/vmods/libvmod_debug.so
/usr/lib64/varnish/vmods/libvmod_directors.so
/usr/lib64/varnish/vmods/libvmod_proxy.so
/usr/lib64/varnish/vmods/libvmod_purge.so
/usr/lib64/varnish/vmods/libvmod_std.so
/usr/lib64/varnish/vmods/libvmod_unix.so
/usr/lib64/varnish/vmods/libvmod_vtc.so
/usr/sbin/varnishd
/usr/sbin/varnishreload
/usr/share/doc/varnish
/usr/share/doc/varnish/ChangeLog
/usr/share/doc/varnish/README.rst
/usr/share/doc/varnish/builtin.vcl
/usr/share/doc/varnish/example.vcl
/usr/share/licenses/varnish
/usr/share/licenses/varnish/LICENSE
/usr/share/man/man1/varnishadm.1.gz
/usr/share/man/man1/varnishd.1.gz
/usr/share/man/man1/varnishhist.1.gz
/usr/share/man/man1/varnishlog.1.gz
/usr/share/man/man1/varnishncsa.1.gz
/usr/share/man/man1/varnishstat.1.gz
/usr/share/man/man1/varnishtest.1.gz
/usr/share/man/man1/varnishtop.1.gz
/usr/share/man/man3/vmod_blob.3.gz
/usr/share/man/man3/vmod_cookie.3.gz
/usr/share/man/man3/vmod_directors.3.gz
/usr/share/man/man3/vmod_proxy.3.gz
/usr/share/man/man3/vmod_purge.3.gz
/usr/share/man/man3/vmod_std.3.gz
/usr/share/man/man3/vmod_unix.3.gz
/usr/share/man/man3/vmod_vtc.3.gz
/usr/share/man/man7/varnish-cli.7.gz
/usr/share/man/man7/varnish-counters.7.gz
/usr/share/man/man7/vcl.7.gz
/usr/share/man/man7/vsl-query.7.gz
/usr/share/man/man7/vsl.7.gz
/usr/share/man/man7/vtc.7.gz
/var/lib/varnish
/var/log/varnish

References

Summary

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