I've been running Pi-Hole on almost every previous version of the Raspberry Pi, will it work on the Raspberry Pi 5 with Bookworm?
I've been running Pi-Hole on almost every previous version of the Raspberry Pi, will it work on the Raspberry Pi 5 with Bookworm?
Yes, you can run Pi-Hole on the Raspberry Pi 5.
Though, you may encounter a couple of hiccups.
As commented in the thread on the pi-hole discourse here: https://discourse.pi-hole.net/t/raspberry-pi-os-bookworm-is-out-now-pihole-error-unsupported-os-detected-debian-12
You may get an error saying "Unsupported OS Detected, Debian 12". To get around this you will need to use the "unsupported" modification in the installer and it will run fine:
"curl -sSL https://install.pi-hole.net | PIHOLE_SKIP_OS_CHECK=true sudo -E bash"
For an update, run:
"PIHOLE_SKIP_OS_CHECK=true sudo -E pihole -up"
Another hiccup you may experience, if you do a fresh install of Pi-Hole on Raspberry Pi OS Bookworm rather than an upgrade/update of the OS to bookworm is that dhcpcd is not installed by default, instead it uses Network Manager. This can be problematic if you're using Pi-Hole as a dhcp server for your network.
Running "raspi-config" should allow you to change the default network manager, but you can also do the following:
sudo apt-get -y remove network-manager
sudo apt-get -y install dhcpcd
sudo apt-get -y autoremove
sudo apt-get -y clean
Which will remove network manager, reinstall dhcpcd and remove any packages remaining and clean up afterwards.
If you want to check if Pi-Hole has updated sufficiently to support the operating system you can run:
dig +short -t txt versions.pi-hole.net @ns1.pi-hole.net