Aggiornamento di OpenBSD

di | Dicembre 30, 2024

Ogni 6 mesi viene rilasciata una nuova versione di OpenBSD. Nel momento in cui scrivo, ad esempio, è disponibile su http://openbsd.org la versione 7.6.
Per aggiornare la propria installazione, è necessario eseguire semplicemente il comando “sysupgrade”, tante volte quante sono le versioni arretrate mai installate. Nel mio caso, ero fermo alla versione 7.3, quindi ho dovuto eseguire il “sysupgrade” per ben 3 volte. Al termine di ogni ciclo di upgrade avviene il reboot della macchina.

jack0e@penguin:~$ ssh jack0e@granito.org.uk
Last login: Mon Dec 30 01:01:44 2024 from 176.201.57.19
OpenBSD 7.5 (GENERIC) #79: Wed Mar 20 15:33:49 MDT 2024

Welcome to OpenBSD: The proactively secure Unix-like operating system.

Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code.  With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.

alfree$ uname -a                                                          
OpenBSD alfree.openbsd.amsterdam 7.5 GENERIC#79 amd64

alfree$ doas sysupgrade
Fetching from https://cdn.openbsd.org/pub/OpenBSD/7.6/amd64/
SHA256.sig   100% |*****************************************************************************************************************************************************|  2324       00:00    
Signature Verified
INSTALL.amd64 100% |****************************************************************************************************************************************************| 44889       00:00    
base76.tgz   100% |*****************************************************************************************************************************************************|   414 MB    00:36    
bsd          100% |*****************************************************************************************************************************************************| 28007 KB    00:02    
bsd.mp       100% |*****************************************************************************************************************************************************| 28139 KB    00:02    
bsd.rd       100% |*****************************************************************************************************************************************************|  4600 KB    00:00    
comp76.tgz   100% |*****************************************************************************************************************************************************| 81512 KB    00:06    
game76.tgz   100% |*****************************************************************************************************************************************************|  2746 KB    00:00    
man76.tgz    100% |*****************************************************************************************************************************************************|  8039 KB    00:00    
xbase76.tgz  100% |*****************************************************************************************************************************************************| 60681 KB    00:05    
xfont76.tgz  100% |*****************************************************************************************************************************************************| 23020 KB    00:01    
xserv76.tgz  100% |*****************************************************************************************************************************************************| 20070 KB    00:01    
xshare76.tgz 100% |*****************************************************************************************************************************************************|  4538 KB    00:00    
Verifying sets.
Fetching updated firmware.
fw_update: add none; update intel|
Upgrading.
Connection to granito.org.uk closed by remote host.
Connection to granito.org.uk closed.

jack0e@penguin:~$ ssh jack0e@granito.org.uk
Last login: Mon Dec 30 01:07:55 2024 from 176.201.57.19
OpenBSD 7.6 (GENERIC) #332: Mon Sep 30 08:45:17 MDT 2024

Welcome to OpenBSD: The proactively secure Unix-like operating system.

Please use the sendbug(1) utility to report bugs in the system.
Before reporting a bug, please try to reproduce it with the latest
version of the code.  With bug reports, please try to ensure that
enough information to reproduce the problem is enclosed, and if a
known fix for it exists, include that as well.

alfree$ uname -a
OpenBSD alfree.openbsd.amsterdam 7.6 GENERIC#332 amd64


Una volta installata l’ultima versione, per aver il sistema completamente aggiornato, è necessario installare eventuali patch emesse per gli eventuali bug riscontrati, sia di sistema operativo (syspatch) e sia relativo alle applicazioni installate (pkg_add -u)

doas syspatch
doas pkg_add -u

Raccomanderei anche di installare sysclean e di eseguire qualcosa come

doas sysclean | egrep '^/usr/(lib|bin|sbin|include|X11R6|share)'|xargs -n 1 -t doas rm -rf

Questo rimuoverà tutti i binari, librerie etc non più necessari e manterrà la macchina un pò pulita

Lascia un commento

Il tuo indirizzo email non sarà pubblicato. I campi obbligatori sono contrassegnati *