ugbsd.md (1444B)
1 # Upgrading out-of-date OpenBSD installs 2 3 4 <time id="post-date">2022-11-11</time> 5 6 <p id="post-excerpt"> 7 First of all, don't do how I do. 8 Upgrade your installs regularly. 9 OpenBSD makes it very easy. 10 </p> 11 12 But, if you do happen to get behind... 13 14 `sysupgrade` is very likely to fail. 15 16 17 ## What happens when you try to upgrade a very old install? 18 19 20 Lots of 404 errors. 21 22 The `sysupgrade` utility tries to grab the next version of the OS from one of the many mirrors 23 (the specific one your system will use is in `/etc/installurl`.) 24 25 The default mirrors only keep the last 2 or 3 versions around, 26 so when `sysupgrade` constructs the url and tries to hit it for downloads, it will fail. 27 28 29 ## Where to get old versions? 30 31 32 There are a couple of mirrors that keep almost all the old versions around. 33 34 <https://mirror.yandex.ru/pub/OpenBSD/> 35 has files going back to OpenBSD 2.x - they seem like 36 the most serious archivists, at least of the mirrors I looked at. 37 38 <https://mirror.sjtu.edu.cn/OpenBSD/> 39 has files going back to 6.5 as of this writing (2022-11-11), 40 also not too shabby. 41 42 Do a little `vi /etc/installurl` and change the link to one of the above, 43 depending on how delinquent you've been. 44 45 That should allow you to do serial `sysupgrade` commands until you catch up. 46 47 When you get close to the current version, 48 consider switching back to a closer mirror, 49 both for faster installs 50 and to be kind to the folks who just saved your bacon.