Check last RPi Os Updates

Auch ältere oldoldstable-Distros werden irgenwann nicht mehr weiter aktualisiert. Das äussert sich dann in update-Kommandos, die nur noch 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded ausspucken.

Um zu schauen, wann die letzten Release-Infos waren (oder sind), kann man die entsprechenden Links anwählen und das Datum auslesen. In dem folgenden Script sind die armhf-Varianten von Buster, Bullseye und Bookworm voreingestellt. Lassen sich leicht austauschen um andere Distros anzeigen zu lassen. Output sieht dann so aus:

last Update: http://archive.raspberrypi.org/debian/dists/buster/main/binary-armhf/
2024-07-18
last Update: http://archive.raspberrypi.org/debian/dists/bullseye/main/binary-armhf/
2024-09-05
last Update: http://archive.raspberrypi.org/debian/dists/bookworm/main/binary-armhf/
2024-07-18


#!/bin/bash

link1=http://archive.raspberrypi.org/debian/dists/buster/main/binary-armhf/
link2=http://archive.raspberrypi.org/debian/dists/bullseye/main/binary-armhf/
link3=http://archive.raspberrypi.org/debian/dists/bookworm/main/binary-armhf/

rm index*

wget -q $link1

echo "last Update: $link1"
cat index.html | grep "Release" | grep -oP '(?<= )\d{4}-\d{2}-\d{2}' | head -1

rm index*

wget -q $link2

echo "last Update: $link2"
cat index.html | grep "Release" | grep -oP '(?<= )\d{4}-\d{2}-\d{2}' | head -1

rm index*

wget -q $link3

echo "last Update: $link3"
cat index.html | grep "Release" | grep -oP '(?<= )\d{4}-\d{2}-\d{2}' | head -1