One Command to Update PiHole

Published: 2024-05-12 | Updated: 2024-07-15

Here is a single copy/past which will update your OS and the PiHole app all in one go:

sudo apt-get update && sudo apt-get upgrade -y && sudo pihole -up

OK for real that will do the trick but sometimes merely updating the OS and the App doesn’t get everything up and running with the latest. For that you need to reboot.

But that’s so easy you don’t really need to copy/paste…

sudo reboot

And if you just want to do the reboot by default, this is it, all in one single line

sudo apt-get update && sudo apt-get upgrade -y && sudo pihole -up && sudo reboot

An up-to-date pi.hole is a happy pi.hole