How to: update Pi-hole

My DNS at home is powered by Pi-hole, which needs to be updated occasionally:

ssh pi@pi.hole

# update system
sudo apt-get update
sudo apt-get upgrade

# update pi-hole & blocklists
pihole -up
pihole -g

# update cloudflared
sudo cloudflared update
sudo systemctl restart cloudflared

If a new kernel got installed (raspberrypi-kernel package), reboot.