index.html (3132B)
1 <!DOCTYPE html> 2 <html lang="en"> 3 <head> 4 <link rel="stylesheet" href="/style.css" type="text/css"> 5 <meta charset="utf-8"> 6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 7 <meta name="viewport" content="width=device-width, initial-scale=1.0"> 8 <link rel="stylesheet" type="text/css" href="/style.css"> 9 <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🏕️</text></svg>"> 10 <title></title> 11 </head> 12 <body> 13 <div id="page-wrapper"> 14 <div id="header" role="banner"> 15 <header class="banner"> 16 <div id="banner-text"> 17 <span class="banner-title"><a href="/">beauhilton</a></span> 18 </div> 19 </header> 20 <nav> 21 <a href="/about">about</a> 22 <a href="/now">now</a> 23 <a href="/thanks">thanks</a> 24 <a class="nav-active" href="/posts">posts</a> 25 <a href="https://notes.beauhilton.com">notes</a> 26 <a href="https://talks.beauhilton.com">talks</a> 27 <a href="https://git.beauhilton.com">git</a> 28 <a href="/contact">contact</a> 29 <a href="/atom.xml">rss</a> 30 </nav> 31 </div> 32 <main> 33 <h1> 34 Upgrading out-of-date OpenBSD installs 35 </h1> 36 <p> 37 <time id="post-date">2022-11-11</time> 38 </p> 39 <p id="post-excerpt"> 40 First of all, don't do how I do. 41 Upgrade your installs regularly. 42 OpenBSD makes it very easy. 43 </p> 44 <p> 45 But, if you do happen to get behind… 46 </p> 47 <p> 48 <code>sysupgrade</code> is very likely to fail. 49 </p> 50 <h2> 51 What happens when you try to upgrade a very old install? 52 </h2> 53 <p> 54 Lots of 404 errors. 55 </p> 56 <p> 57 The <code>sysupgrade</code> utility tries to grab the next version of 58 the OS from one of the many mirrors (the specific one your system will 59 use is in <code>/etc/installurl</code>.) 60 </p> 61 <p> 62 The default mirrors only keep the last 2 or 3 versions around, so 63 when <code>sysupgrade</code> constructs the url and tries to hit it for 64 downloads, it will fail. 65 </p> 66 <h2> 67 Where to get old versions? 68 </h2> 69 <p> 70 There are a couple of mirrors that keep almost all the old versions 71 around. 72 </p> 73 <p> 74 <a href="https://mirror.yandex.ru/pub/OpenBSD/">https://mirror.yandex.ru/pub/OpenBSD/</a> 75 has files going back to OpenBSD 2.x - they seem like the most serious 76 archivists, at least of the mirrors I looked at. 77 </p> 78 <p> 79 <a href="https://mirror.sjtu.edu.cn/OpenBSD/">https://mirror.sjtu.edu.cn/OpenBSD/</a> 80 has files going back to 6.5 as of this writing (2022-11-11), also not 81 too shabby. 82 </p> 83 <p> 84 Do a little <code>vi /etc/installurl</code> and change the link to 85 one of the above, depending on how delinquent you’ve been. 86 </p> 87 <p> 88 That should allow you to do serial <code>sysupgrade</code> commands 89 until you catch up. 90 </p> 91 <p> 92 When you get close to the current version, consider switching back to 93 a closer mirror, both for faster installs and to be kind to the folks 94 who just saved your bacon. 95 </p> 96 </main> 97 <div id="footnotes"></div> 98 <footer></footer> 99 </div> 100 </body> 101 </html>