Terminal recording · Maintenance · 4 min · Beginner
Update a guest and read what changed
Run update, check the result and see in etckeeper exactly what changed in /etc.
Recording follows – the steps below work without it.
1. Update
In the guest, as root:
update
Debian packages, the app (to the version haypack tested), the modules and the configuration – in one run. A second run changes nothing.
2. Check the result
cat /var/lib/iac/update.json # outcome of the last run
cat /etc/iac/instance.json # app, version, modules of this guest
3. See what changed
git -C /etc log --oneline -5
git -C /etc show # the last change in detail
etckeeper snapshots /etc before and after every run. With the module
auto-update this happens every night at 02:00. More:
Update.
Die Aufzeichnung folgt – die Schritte darunter funktionieren auch ohne sie.
1. Aktualisieren
Im Gast als root:
update
Debian-Pakete, App auf den von haypack getesteten Stand, Module und Konfiguration werden in einem Lauf aktualisiert. Ein zweiter Lauf stellt denselben Zielzustand her.
2. Ergebnis prüfen
cat /var/lib/iac/update.json
cat /etc/iac/instance.json
Die erste Datei enthält das Ergebnis des letzten Updates, die zweite App, Version und aktive Module dieses Gasts.
3. Änderungen nachvollziehen
git -C /etc log --oneline -5
git -C /etc show
etckeeper erfasst /etc vor und nach jedem Lauf. Der erste Befehl zeigt die letzten fünf Änderungen, der zweite die letzte Änderung im Detail. Mit auto-update erfolgt die Aktualisierung jede Nacht um 02:00 Uhr. Details: Aktualisieren.