How To Install caddy on Fedora 36

In this tutorial we learn how to install caddy in Fedora 36. caddy is Web server with automatic HTTPS

Introduction

In this tutorial we learn how to install caddy on Fedora 36.

What is caddy

Caddy is the web server with automatic HTTPS.

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

Install caddy on Fedora 36 Using dnf

Update yum database with dnf using the following command.

sudo dnf makecache --refresh

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

sudo dnf -y install caddy

Install caddy on Fedora 36 Using yum

Update yum database with yum using the following command.

sudo yum makecache --refresh

After updating yum database, We can install caddy using yum by running the following command:

sudo yum -y install caddy

How To Uninstall caddy on Fedora 36

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

sudo dnf remove caddy

caddy Package Contents on Fedora 36

/etc/caddy
/etc/caddy/Caddyfile
/etc/caddy/Caddyfile.d
/usr/bin/caddy
/usr/lib/.build-id
/usr/lib/.build-id/55
/usr/lib/.build-id/55/8ef5d443f18476adf531261434f6f9be88d076
/usr/lib/systemd/system/caddy-api.service
/usr/lib/systemd/system/caddy.service
/usr/share/bash-completion/completions/caddy
/usr/share/caddy
/usr/share/caddy/icons
/usr/share/caddy/icons/poweredby.png
/usr/share/caddy/index.html
/usr/share/caddy/poweredby.png
/usr/share/doc/caddy
/usr/share/doc/caddy/AUTHORS
/usr/share/doc/caddy/README.md
/usr/share/licenses/caddy
/usr/share/licenses/caddy/LICENSE
/usr/share/zsh
/usr/share/zsh/site-functions
/usr/share/zsh/site-functions/_caddy
/var/lib/caddy

References

Summary

In this tutorial we learn how to install caddy on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).