Skip to main content
  1. Posts/

Update Caddy on Linux

·76 words·1 min·
cover-caddy-update

Download binary #

Download the latest binary in .tar.gz archive from GitHub Releases: https://github.com/caddyserver/caddy/releases/latest

wget "https://github.com/caddyserver/caddy/releases/download/v2.10.0/caddy_2.10.0_linux_amd64.tar.gz"

Verify Checksum #

wget "https://github.com/caddyserver/caddy/releases/download/v2.10.0/caddy_2.10.0_checksums.txt"
sha512sum --ignore-missing -c "caddy_2.10.0_checksums.txt"

Extract the binary #

Extract the binary from the downloaded archive:

tar -xf caddy_2.10.0_linux_amd64.tar.gz caddy

Stop caddy.service #

Stop the Systemd service:

systemctl stop caddy

Install the binary #

Use the install command to copy the binary to /usr/local/bin/ and set attributes:

sudo install -v caddy /usr/bin/

Start caddy.service #

Start the systemd service:

systemctl start caddy