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

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

If needed, just the blocklists can be updated with

pihole -g