Various

Updating PiHole on Raspberry PI

Pi-hole is a popular open-source network-level ad blocker that can be installed on a Raspberry Pi. It blocks advertisements on all devices connected to the network, making browsing faster and more pleasant. As with any software, it is important to keep Pi-hole up to date to ensure it continues to function properly and remains secure.

In this blog post, we will discuss the steps to update Pi-hole on a Raspberry Pi. We will walk through the process of checking for updates, downloading the latest version, and installing the update.

Step 1: Connect to the Raspberry Pi

To update Pi-hole, we first need to connect to the Raspberry Pi on which it is installed. The easiest way to do this is by using SSH. Open a terminal on your computer and type:

C:\Users\Admin>ssh raspberrypi.local -l pi
pi@raspberrypi.local's password:

Enter the password for the pi user on the Raspberry Pi when prompted. This will give you access to the command line interface on the Raspberry Pi.

Linux raspberrypi 5.10.63-v7l+ #1488 SMP Thu Nov 18 16:15:28 GMT 2021 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Jan 23 12:27:25 2022 from fe80::c5b3:a1bd:322d:bb73%eth0

Wi-Fi is currently blocked by rfkill.
Use raspi-config to set the country before use.

Step 2: Update Pi-hole

To update Pi-hole, run the command:

pi@raspberrypi:~ $ pihole -up
  [✓] Update local cache of available packages
  [i] Existing PHP installation detected : PHP version 7.4.25

This will download and install the latest version of Pi-hole. The update process may take a few minutes, depending on the speed of your internet connection and the Raspberry Pi.

Once the update is complete, you should see a message indicating that Pi-hole has been updated successfully. It is important to note that Pi-hole may need to restart after the update is complete. If this is the case, you will see a message asking if you want to restart Pi-hole. Answer “yes” to this prompt.

Conclusion

Updating Pi-hole on a Raspberry Pi is a simple process that can be done in just a few steps. By keeping Pi-hole up to date, you can ensure that it continues to function properly and remains secure. With Pi-hole installed on a Raspberry Pi, you can enjoy a faster and more pleasant browsing experience, free from annoying advertisements.