Update PiHole with a Single Command

Published: 2024-07-02 | Updated: 2024-07-09

Here’s my one-line command I use to update my PiHole’s operating system and everything the PiHole service depends on to function properly. I use it once a month, or as any new PiHole updates are released.

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

Simply open an SSH session into your PiHole device and copy/paste the command above. When it finishes your PiHole will disconnect the session as it reboots. At that point PiHole will be totally up to date with the latest released software for its Operating System and application files.