Tuesday, April 2, 2019

Updating Raspberry Pi & Pi-Hole

APT (Advanced Packaging Tool)

To update software in Raspbian, you can use the apt tool in a terminal. Open a terminal window from the taskbar or application menu:
Terminal

First, update your system's package list by entering the following command:
sudo apt-get update

Next, upgrade all your installed packages to their latest versions with the following command:
sudo apt-get dist-upgrade

Generally speaking, doing this regularly will keep your installation up to date, in that it will be equivalent to the latest released image available from
raspberrypi.org/downloads.

However, there are occasional changes made in the Foundation's Raspbian image that require manual intervention, for example a newly introduced package. These are not installed with an upgrade, as this command only updates the packages you already have installed.

Updating the kernel and firmware

The kernel and firmware are installed as a Debian package, and so will also get updates when using the procedure above. These packages are updated infrequently and after extensive testing.

Updating Pi-Hole

Updating is as simple as running the following command:
pihole -up

Script for Updating Pi-Hole

#!/bin/sh
sudo apt update
sudo apt -yf dist-upgrade
sudo apt-get -y --purge autoremove
sudo apt-get autoclean
pihole -g -up
pihole -up
 

Running Raspberry Pi Config Tool

sudo raspi-config
Open "Localisation Options" 
 

No comments: