site

source files for beau's website
git clone https://git.beauhilton.com/site.git
Log | Files | Refs

index.html (3309B)


      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,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cstyle%3E %23m %7B opacity:0; %7D%0A@media (prefers-color-scheme: dark) %7B %23m %7B opacity:1; %7D %23e %7B opacity:0 %7D%0A%7D %3C/style%3E%3Ctext id='m' y='.9em' font-size='90'%3E🏕️%3C/text%3E%3Ctext id='e' y='.9em' font-size='90'%3E🌞%3C/text%3E%3C/svg%3E">
     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 class="nav-active" href="/posts">posts</a>
     24 <a href="https://notes.beauhilton.com">notes</a>
     25 <a href="https://talks.beauhilton.com">talks</a>
     26 <a href="https://git.beauhilton.com">git</a>
     27 <a href="/contact">contact</a>
     28 <a href="/feed.xml">rss</a>
     29     </nav>
     30    </div>
     31    <main>
     32     <h1>
     33      Upgrading out-of-date OpenBSD installs
     34     </h1>
     35     <p>
     36      <time id="post-date">2022-11-11</time>
     37     </p>
     38     <p id="post-excerpt">
     39      First of all, don't do how I do. 
     40 Upgrade your installs regularly. 
     41 OpenBSD makes it very easy.
     42     </p>
     43     <p>
     44      But, if you do happen to get behind…
     45     </p>
     46     <p>
     47      <code>sysupgrade</code> is very likely to fail.
     48     </p>
     49     <h2>
     50      What happens when you try to upgrade a very old install?
     51     </h2>
     52     <p>
     53      Lots of 404 errors.
     54     </p>
     55     <p>
     56      The <code>sysupgrade</code> utility tries to grab the next version of
     57 the OS from one of the many mirrors (the specific one your system will
     58 use is in <code>/etc/installurl</code>.)
     59     </p>
     60     <p>
     61      The default mirrors only keep the last 2 or 3 versions around, so
     62 when <code>sysupgrade</code> constructs the url and tries to hit it for
     63 downloads, it will fail.
     64     </p>
     65     <h2>
     66      Where to get old versions?
     67     </h2>
     68     <p>
     69      There are a couple of mirrors that keep almost all the old versions
     70 around.
     71     </p>
     72     <p>
     73      <a href="https://mirror.yandex.ru/pub/OpenBSD/">https://mirror.yandex.ru/pub/OpenBSD/</a>
     74 has files going back to OpenBSD 2.x - they seem like the most serious
     75 archivists, at least of the mirrors I looked at.
     76     </p>
     77     <p>
     78      <a href="https://mirror.sjtu.edu.cn/OpenBSD/">https://mirror.sjtu.edu.cn/OpenBSD/</a>
     79 has files going back to 6.5 as of this writing (2022-11-11), also not
     80 too shabby.
     81     </p>
     82     <p>
     83      Do a little <code>vi /etc/installurl</code> and change the link to
     84 one of the above, depending on how delinquent you’ve been.
     85     </p>
     86     <p>
     87      That should allow you to do serial <code>sysupgrade</code> commands
     88 until you catch up.
     89     </p>
     90     <p>
     91      When you get close to the current version, consider switching back to
     92 a closer mirror, both for faster installs and to be kind to the folks
     93 who just saved your bacon.
     94     </p>
     95    </main>
     96    <div id="footnotes"></div>
     97    <footer></footer>
     98   </div>
     99  </body>
    100 </html>