[BACK]Return to upgrade51.html CVS log [TXT][DIR] Up to [local] / www / faq

File: [local] / www / faq / upgrade51.html (download) (as text)

Revision 1.25, Tue May 28 01:53:11 2019 UTC (5 years ago) by bentley
Branch: MAIN
CVS Tags: HEAD
Changes since 1.24: +2 -2 lines

Give FAQ pages their own HTML id, for future use.

<!doctype html>
<html lang=en id=faq>

<title>OpenBSD Upgrade Guide: 5.0 to 5.1</title>
<meta charset=utf-8>
<meta name="description"   content="OpenBSD Upgrade Process for 5.0 -> 5.1">
<meta name="viewport"      content="width=device-width, initial-scale=1">
<link rel="stylesheet"     type="text/css" href="../openbsd.css">
<link rel="canonical"      href="https://www.openbsd.org/faq/upgrade51.html">

<h2 id=OpenBSD>
<a href="../index.html">
<i>Open</i><b>BSD</b></a>
Upgrade Guide: 5.0 to 5.1
</h2>
<hr>
<p>
<a href="index.html">[FAQ Index]</a> |
<a href="upgrade50.html">[4.9 -> 5.0]</a> |
<a href="upgrade52.html">[5.1 -> 5.2]</a>

<p>

<i>Note: Upgrades are only supported from one release to the release
immediately following it.
Do not skip releases.</i>

<p><i>
It is highly recommended that you read through and fully understand
this process before attempting it.
If you are doing it on a critical or physically remote machine, it is
recommended that you test this process on an identical, local system to
verify its success before attempting on a critical or remote computer.
</i>

<p>
Upgrading is a convenient way to bring your OpenBSD system up to the most
recent version.
However, the results are not intended to precisely match the results of
a wipe-and-reload installation.
Old library files in particular are not removed in the upgrade process,
as they may be required by older applications that may or may not be
upgraded at this time.
If you REALLY wish to get rid of all these old files, you are probably
better off reinstalling from scratch.

<p>
Table of Contents:
<ul>
<li><a href="#before">Before upgrading</a>
  <ul>
  <li><a href="#x-kbd-cfg">BEFORE UPGRADING: Must delete an X directory</a>
  <li><a href="#ccdgone">ccd(4) has been removed</a>
  <li><a href="#nsd">NSD upgrade</a>
  <li><a href="#kern">Modified kernel</a>
  <li><a href="#raidframegoing">Advanced Notice: raid(4) and RAIDframe
    are going away for 5.2</a>
  </ul>
<li><a href="#upgrade">The upgrade process</a>
<li><a href="#final">Final steps</a>
  <ul>
  <li><a href="#sysmerge">Merging locally changed files via sysmerge(8)</a>
  <li><a href="#patchfile">Merging locally changed files via patch file</a>
  <li><a href="#RmFiles">Files to delete</a>
  <li><a href="#Kernchk">Checking the kernel</a>
  <li><a href="#Pkgup">Upgrading packages</a>
  </ul>
</ul>

<hr>
<p>
<h2 id="before">Before upgrading: things to think about and be aware of</h2>
This is <i>not</i> a complete list of the changes that took place
between 5.0 and 5.1, but rather some of the important things that will
impact a large number of users in the upgrade process.
For a more complete list of changes, see
<a href="../plus51.html">plus51.html</a> and the CVS change logs.

<ul>
<li id="x-kbd-cfg"><b>BEFORE UPGRADING: must delete an X directory:</b><br>
Failure to do this during a remote upgrade (i.e., without bsd.rd) will
result in error messages while unpacking <code>xshare51.tgz</code> and
probably result in your keyboard not functioning in X!
This is handled properly by the bsd.rd upgrade scripts, but a remote
upgrade user MUST do this before unpacking the install files:

<blockquote><pre>
rm -rf /usr/X11R6/share/X11/xkb/symbols/srvr_ctrl
</pre></blockquote>
<p>

<li id="ccdgone"><b>ccd(4) has been removed:</b><br>
If you are currently using ccd(4), you will need to look at other
alternatives, most likely
<a href="https://man.openbsd.org/softraid.4">softraid(4)</a>.
<p>

<li id="nsd"><b>NSD upgrade:</b><br>
NSD was updated to v3.2.9.
The binary database format has changed; after upgrading, you will need
to rebuild it from the zone files and re-start nsd:

<blockquote><pre>
nsdc rebuild
/etc/rc.d/nsd restart
</pre></blockquote>

<p>
<li id="kern"><b>Modified kernel:</b><br>
Check whether you have made any modifications to your kernel.
For example, you might have modified your network device to use a
non-default setting using config(8).
Note your changes, so you can repeat them for the new 5.1 kernel.

<p>
<li id="raidframegoing"><b>Advanced Notice: raid(4) and RAIDframe are going away for 5.2:</b>
If you are using RAIDframe for a system currently, you will need to make
plans to rebuild it using
<a href="https://man.openbsd.org/softraid.4">softraid(4)</a>
before you can upgrade it past 5.1.
This will not impact your upgrade to 5.1, this is just
advance warning of future changes.

</ul>

<p>
<hr>
<h2 id="upgrade">The upgrade process</h2>

<h3>Upgrading by install kernel</h3>
If you have access to the system's console, the easiest and safest way
to upgrade is to boot from the install kernel by boot media or
<a href="faq4.html#bsd.rd">bsd.rd</a> and follow the upgrade steps,
which are very similar to the <a href="faq4.html">install process</a>.

<p>
Afterwards, complete the upgrade by following the <a href="#final">final
steps</a> as detailed below.

<p>
One easy way to boot from the install kernel is to place the 5.1 version
of <i>bsd.rd</i> in the root of your boot drive, then instruct the boot loader
to boot using this new <i>bsd.rd</i> file.
On amd64 and i386, you do this by entering "<code>boot bsd.rd</code>" at the
initial <code>boot&gt;</code> prompt.

<h3>Upgrading without install kernel</h3>
<i>This is NOT the recommended process.  Use the install kernel method
if at all possible!</i>

<p>
Sometimes, one needs to do an upgrade of a machine when one can't easily
use the normal upgrade process.
The most common case is when the machine is in a remote location and you
don't have easy access to the system console.
One can usually do this by carefully following this process:

<ul>
<li><b>Place install files in a "good" location</b>.
Make sure you have sufficient space!

<p>
<li><b>Become root with ksh(1):</b>
While using
<a href="https://man.openbsd.org/sudo.8">sudo(8)</a>
before each command is generally a good practice, the sudo(8) command
will be broken by the last steps, so you should be root before starting
this process.
Also, the use of the OpenBSD
<a href="https://man.openbsd.org/ksh.1">ksh(1)</a>
shell is assumed.

<p>
<li><b>Stop any appropriate applications:</b>
During this process, all the userland applications will be replaced but
may not be runnable, and strange things may happen as a result.
If this is a concern to you, shut down any applications that may
be impacted.
There may be other applications which you wish to keep from running
immediately after the upgrade, stop and disable them as well.

<p>
<li><b>Check the kernel:</b>
Although <b>most people can skip this step</b>, if you had a modified kernel
in 5.0, it is likely you will need to modify the stock kernel of 5.1.
Especially when you are performing the upgrade process remotely, now is
the time to make sure the new kernel will work upon rebooting the machine.
If any changes must be made to the kernel, the safest thing to do is to
make those changes on a local 5.1 system.
This can be as simple as modifying a specific device using config(8),
or it can involve a recompilation if the option you need is not included
in the GENERIC kernel.
Please consult <a href="faq5.html">FAQ 5 - Building the system from source</a>
before deciding to recompile your kernel.

<p>
<li><b>Install new kernel(s):</b>

<ul>
<li>If using a single processor kernel:
<blockquote><pre>
<b>export RELEASEPATH=</b><i>/usr/rel</i>   <i># where you put the files</i>
<b>cd ${RELEASEPATH}</b>
<b>rm /obsd ; ln /bsd /obsd && cp bsd /nbsd && mv /nbsd /bsd</b>
<b>cp bsd.rd bsd.mp /</b>
</pre></blockquote>
(note: you will get a harmless error message if your platform doesn't
have a bsd.mp):
<p>

<li>If you are using the multiprocessor kernel:
<blockquote><pre>
<b>export RELEASEPATH=</b><i>/usr/rel</i>   <i># where you put the files</i>
<b>cd ${RELEASEPATH}</b>
<b>rm /obsd ; ln /bsd /obsd && cp bsd.mp /nbsd && mv /nbsd /bsd</b>
<b>cp bsd.rd /</b>
<b>cp bsd /bsd.sp</b>
</pre></blockquote>
</ul>

<p>
Note the extra steps for copying over the primary kernel: those are done
to ensure that there is always a valid copy of the kernel on the disk
that the system can boot from should there be a really badly timed power
outage or system crash.

<p>
<li><b>Save a copy of reboot(8), install new userland applications.</b>
You are still running the old kernel, it is possible the new reboot
command will not run on the old kernel, so we will start by saving a
copy of the old reboot command.
<i>Do NOT install <code>etc51.tgz</code> and <code>xetc51.tgz</code> now, because
that will overwrite your current configuration files!</i>
Note that we are installing base51.tgz LAST, because it will include a new
<a href="https://man.openbsd.org/tar.1">tar(1)</a>
utility, which may or may not run on the old kernel.
We reboot immediately, as the system is probably barely runnable after
the unpacking of all the new files.

<blockquote><pre>
<b>cp /sbin/reboot /sbin/oreboot</b>
<b>rm -rf /usr/X11R6/share/X11/xkb/symbols/srvr_ctrl</b>
<b>tar -C / -xzphf xserv51.tgz</b>
<b>tar -C / -xzphf xfont51.tgz</b>
<b>tar -C / -xzphf xshare51.tgz</b>
<b>tar -C / -xzphf xbase51.tgz</b>
<b>tar -C / -xzphf game51.tgz</b>
<b>tar -C / -xzphf comp51.tgz</b>
<b>tar -C / -xzphf man51.tgz</b>
<b>tar -C / -xzphf base51.tgz</b> # Install last!
<b>/sbin/oreboot</b>
</pre></blockquote>

Not all file sets will need to be installed for all applications,
however if you installed a file set originally, you should certainly
upgrade it with the new file set now.

<p>
Again, the files in <code>/etc</code> are handled separately below, so
<code>etc51.tgz</code> and <code>xetc51.tgz</code> are NOT unpacked here.

<p>
<li><b>After reboot completes, upgrade <code>/dev</code>.</b>
The new
<a href="https://man.openbsd.org/OpenBSD-5.1/i386/MAKEDEV">MAKEDEV</a>
file was copied to /dev by the installation of
<code>base51.tgz</code>, so you simply need to do the following:
<blockquote><pre>
<b>cd /dev</b>
<b>./MAKEDEV all</b>
</pre></blockquote>

</ul>

<hr>
<h2 id="final">Final steps</h2>

Whether you upgrade by using an install kernel and doing a formal
"upgrade" process, or do a "in-place" binary upgrade, you need to update
the system configuration files which are included in the <code>etc51.tgz</code>
which have not been dealt with so far.
There are two processes we provide for you -- manually copying over some
files and patching others, or using the
<a href="https://man.openbsd.org/sysmerge.8">sysmerge(8)</a>
process.

<p>
<h3 id="sysmerge">1a. Merging locally changed files via sysmerge(8)</h3>

<blockquote>
<b>Who should use sysmerge(8):</b><br>
People running highly modified systems or systems that didn't start out
at the previous release (for example, a snapshot part way between
releases), who are upgrading to a snapshot or who have not carefully
upgraded their system in the past will find sysmerge vastly superior to
using the patches, as it works with what is actually on your system,
instead of what we expected was on your system.
It will also give you much greater control over your upgrade process,
and will involve you in it more closely.

<p>
<b>Who may wish to NOT use sysmerge(8):</b><br>
With recent improvements in sysmerge, we hope that relatively few
people have reason not to use sysmerge(8)!
However, people with a large quantity of similar machines to upgrade
may find the "patchfile" process faster, and perhaps the basis of
a customized upgrade script.

<p>
<b>Using sysmerge(8) for the first time:</b><br>
If you have a system that's been upgraded in the past via the patchfile
process you will probably find the FIRST time you upgrade by sysmerge,
you have a LOT of manual file changes to make.
This is because the patch file process only attempted to achieve
functional compatibility on the upgraded system, and did not respect
the version control information sysmerge(8) uses to identify "unchanged"
files.
Rest assured, later runs of sysmerge will be far less painful, and often
completely effortless.

<p>
The
<a href="https://man.openbsd.org/sysmerge.8">sysmerge(8)</a>
utility will compare the files that are actually on your system with
those that would be installed in a fresh install, and assist you in
merging the changes into your system.
Note that unlike the patch file, there are no assumptions made about
what is actually on your system, so you can use sysmerge(8) to move
between more arbitrary <a href="faq5.html#Flavors">points in the
development process</a>, such as from an earlier <i>5.0-current</i> to
<i>5.1-release</i> or from one <i>-current</i> to a later one.
Sysmerge(8) compares the current files on your system with the files
that would have been installed with a new install, and what would have
been there from the last run of sysmerge.
Usually, it can figure out what to do to update your files, but if it
has difficulty, it will give you the option of keeping the old file,
installing the new file, or assisting you in the manual merging of the
old and new files, using
<a href="https://man.openbsd.org/sdiff.1">sdiff</a>.

<p>
Please read the
<a href="https://man.openbsd.org/sysmerge.8">sysmerge(8)</a>
manual page before using it on your system.
You are also advised to read the
<a href="https://man.openbsd.org/diff.1">diff(1)</a>,
<a href="https://man.openbsd.org/sdiff.1">sdiff(1)</a>
and even review
<a href="https://man.openbsd.org/more.1">more(1)</a>
manual pages before continuing.

<p>
Assuming the <code>etc51.tgz</code> and <code>xetc51.tgz</code> files exists in
your $RELEASEPATH, run it with:

<blockquote><pre>
<b>sysmerge -s $RELEASEPATH/etc51.tgz -x $RELEASEPATH/xetc51.tgz</b>
</pre></blockquote>

For the files sysmerge(8) can't resolve on its own, it will show you a
unified
<a href="https://man.openbsd.org/diff.1">diff(1)</a>,
run through your favorite $PAGER (i.e.,
<a href="https://man.openbsd.org/more.1">more(1)</a>)
and ask you if you wish to:
<blockquote><pre>
  Use 'd' to delete the temporary ./var/www/htdocs/index.html
  Use 'i' to install the temporary ./var/www/htdocs/index.html
  Use 'm' to merge the temporary and installed versions
  Use 'v' to view the diff results again

  Default is to leave the temporary file to deal with by hand
</pre></blockquote>

<p>
If you wish to retain your existing file, delete the temporary file, if
you wish to replace your existing file with the new version, install the
temporary file.
If you wish to merge the two together, choosing 'm' will put you into
<a href="https://man.openbsd.org/sdiff.1">sdiff(1)</a>,
where you can manually merge the file.
The default is to come back and deal with the file later, manually.

<p>
Sysmerge(8) saves all your replaced files into a temporary directory,
similar to <code>/var/tmp/sysmerge.24959/backups</code>, so if you accidentally
clobber something that was probably not such a good idea, you have a chance
to recover it. Note that
<a href="https://man.openbsd.org/daily.8">daily(8)</a>
cleans old files from this directory, but it will survive a reboot.

<!-- p>
<b>Sysmerge notes for 5.0 -> 5.1:</b><br>
<ul>
<li><b><code>/etc/sysctl.conf</code>:</b>
The changes to <code>sysctl.conf</code> are all commented out items, so
installing the changed file will not directly change your system
behavior.
Blindly installing the new default over your old, customized file
will often cause significant annoyance.
However, the new file shows the defaults and common options that are
available, so you may wish to manually merge the changes into your file,
or install the new file and put your changes back into the new file.

</ul -->
</blockquote>

<p>
<h3 id="patchfile">1b. Merging locally changed files via a patch file</h3>
<blockquote>
This process makes a lot of assumptions about what files you have and
have not modified, and that you are upgrading from <i>5.0-release</i> to
<i>5.1-release</i>.
Before following this, make sure your system matches the assumptions,
and alter the process accordingly if needed -- or just use the above
<a href="#sysmerge">sysmerge process</a>.

<p id="UsersGroups">
No new users and groups need to be created for 5.1.
<!--
The following users need to be created for 4.8:

<blockquote><pre>
<b>useradd -u 99 -g =uid -c "sndio privsep" -d /var/empty -s /sbin/nologin _sndio
useradd -u 100 -g =uid -c "LDAP Daemon" -d /var/empty -s /sbin/nologin _ldapd
useradd -u 101 -g =uid -c "IKEv2 Daemon" -d /var/empty -s /sbin/nologin _iked</b>
</pre></blockquote>
-->

<p>
You will want to extract the <code>etc51.tgz</code> files to a temporary
location:
<blockquote><pre>
<b>export RELEASEPATH=/usr/rel</b>
<b>tar -C /tmp -xzphf ${RELEASEPATH}/etc51.tgz</b>
</pre></blockquote>


Files that can probably be copied from <code>etc51.tgz</code> "as is":

<blockquote><pre>
etc/daily
etc/mixerctl.conf
etc/moduli
etc/netstart
etc/rc
etc/rc.conf
etc/mail/localhost.cf
etc/mail/sendmail.cf
etc/mail/submit.cf
etc/rc.d/amd
etc/rc.d/ftpd
etc/rc.d/identd
etc/rc.d/ldapd
etc/rc.d/mopd
etc/rc.d/nsd
etc/rc.d/ntpd
etc/rc.d/popa3d
etc/rc.d/rarpd
etc/rc.d/rc.subr
etc/rc.d/sendmail
etc/rc.d/smtpd
etc/rc.d/sndiod
etc/rc.d/ypbind
etc/rc.d/ypldap
etc/rc.d/ypserv
</pre></blockquote>

Note that it IS possible to locally modify these files; if this has been
done, do NOT simply copy over those files, and consider using the
<a href="#sysmerge">sysmerge(8) process</a> instead.
Pay special attention to <code>mail/*</code> if you are using something
other than the default Sendmail(8) configuration.

<p>
Here are copy/paste lines for copying these files, assuming you unpacked
<code>etc51.tgz</code> in the above recommended place:

<blockquote><pre>
<b>cd /tmp/etc</b>
<b>cp daily mixerctl.conf moduli netstart rc rc.conf /etc</b>
<b>cd /tmp/etc/rc.d</b>
<b>cp amd ftpd identd ldapd mopd nsd ntpd popa3d rarpd sendmail \</b>
<b>   smtpd sndiod ypbind ypldap ypserv /etc/rc.d</b>
<b>cp /tmp/etc/mail/*.cf /etc/mail</b>  # <i>Use with care!</i>
</pre></blockquote>
<p>


<p>
These files likely have local changes, but should be updated for
5.1.  IF you have not altered these files, you can copy over the
new version, otherwise the changes should be merged with your files:

<blockquote><pre>
etc/changelist
etc/login.conf
etc/protocols
etc/services
</pre></blockquote>

The changes to these files are in <a href="upgrade51.patch">this
patch file</a>.
Please test this process before relying on it for a machine you can not
easily get to.
You can attempt to use this by executing the following as root:
<blockquote><pre>
<b>cd /</b>
<b>ftp http://www.openbsd.org/faq/upgrade51.patch</b>
<b>patch -C -p0 &lt; upgrade51.patch</b>
</pre></blockquote>

This will test the patch to see how well it will apply to YOUR system;
to actually apply it, leave off the "<code>-C</code>" option.
Note that it is likely that if you have customized files or not kept
them closely updated, or are upgrading from a snapshot of 5.0, they may
not accept the patch cleanly.
Make sure all file changes are attempted; patch(1) may quit prematurely
if it gets too confused in one file, which may happen if your machine
was originally installed from a snapshot or otherwise has some interim
changes.
The last file to be changed here should be <code>services</code>.
Deleting the file sections that fail from the patch file may permit the
rest to be applied.
You will need to manually apply the changes that are skipped.

<p>
The following files have had changes which should be looked at, but it
is unlikely they should be directly copied or merged (i.e., if you are
using nsd.conf, look at the suggested change of strategy, and decide if
it is appropriate for your use).

<blockquote><pre>
etc/nsd.conf
etc/ypldap.conf
</pre></blockquote>

<p>

Finally, use
<a href="https://man.openbsd.org/newaliases.8">newaliases(8)</a>
to update the aliases database,
<a href="https://man.openbsd.org/mtree.8">mtree(8)</a>
create any new directories:

<blockquote><pre>
<b>newaliases</b>
<b>mtree -qdef /etc/mtree/4.4BSD.dist -p / -u</b>
</pre></blockquote>
</blockquote>

<p><br><p>
<b><i>All upgraders, whether merging via sysmerge(8) or patch file
should continue the upgrade process with these steps:</i></b>

<h3 id="RmFiles">2. Files to delete</h3>
A number of files should be deleted from your system.
Note that some of these may not exist on all systems; that's ok.
Copy and paste the following lines:
<blockquote><pre>
<b>rm /etc/rc.d/aucat</b>
<b>rm /etc/ccd.conf /sbin/ccdconfig /usr/share/man/man8/ccdconfig.8</b>
<b>rm /usr/sbin/pkg_merge</b>
<b>rm /usr/libexec/getNAME /usr/share/man/man8/getNAME.8</b>
<b>rm -rf /usr/lib/gcc-lib/i386-unknown-openbsd5.0</b>
<b>rm -f /usr/bin/midicat /usr/share/man/man1/midicat.1</b>
<b>rm -f /usr/bin/makewhatis /usr/bin/mandocdb /usr/share/man/man8/mandocdb.8</b>
</pre></blockquote>

<h3 id="Kernchk">3. Checking the kernel</h3>
Note: <b>most people can skip this step!</b>
<p>
If you followed the instructions for the upgrade process without install
kernel, you have already completed this step.
However, if you used the install kernel, and if you had a modified kernel
in 5.0, it is likely you will need to modify the stock kernel of 5.1.
This can be as simple as modifying a specific device using config(8),
or it can involve a recompilation if the option you need is not included
in the GENERIC kernel.
Please consult <a href="faq5.html">FAQ 5 - Building the system from source</a>
before considering to recompile your kernel.

<p>
<h3 id="Pkgup">4. Upgrading packages</h3>
If you installed any packages on your system, you should upgrade them
after completing the upgrade of the base system.
Be aware, however, many packages will require further setup before
and/or after upgrading the package.
Check with the application's upgrade guide for details.

<p>
The following packages are known to have significant upgrade issues that
will impact a large number of users.
The fact that a package is not on this list doesn't mean it will have a
trivial upgrade.
You must do some homework on the applications YOU use.

<ul>
<li><b>kqemu:</b> Must be kept in sync with the kernel. pkg_delete prior
to the upgrade, then pkg_add the new package once the upgrade has been
completed.

<p>
<li><b>QEMU binary name change:</b>
As of QEMU 1.0 the i386 target has been renamed from qemu to
qemu-system-i386, you will need to change scripts/command lines as
necessary.

<p>
<li><b>PostgreSQL:</b>
Major upgrade to PostgreSQL 9.1.0.
A dump/restore is required.

<p>
<li><b>Subversion:</b>
Major upgrade to Subversion 1.7.0.
Existing working copies need to be upgraded manually.
See the <a href="https://subversion.apache.org/docs/release-notes/1.7.html#wc-ng"
>Subversion 1.7 release notes</a> for details.

<p>
<li><b>php 5.3:</b>
The primary PHP version used in ports was switched to 5.3.
This change means that if you run PHP applications packaged in ports,
you will need to switch your webserver config to use the newer version
of PHP.
If you are currently using PHP with Apache in base, you will need to
adjust your configuration:
<blockquote><pre><b>cd /var/www/conf/modules
ln -fs /var/www/conf/modules.sample/php-5.3.conf /var/www/conf/modules/php.conf
</b></pre></blockquote>
You will also need to check for links to any active PHP extension modules
in /etc/php-5.2 and re-create them in /etc/php-5.3, e.g.
<blockquote><pre><b>cd /etc/php-5.3
ls -l ../php-5.3.sample
ln -s ../php-5.3.sample/pdo_mysql.ini .
# (etc)
</b></pre></blockquote>
Note that mhash is now part of the main php-5.3 package so an
existing mhash.ini symbolic link can be ignored.

<p>
<li><b>courier-imap 4.10</b>
Courier-imap has reset its epoch for the internal sequence number generator
for new mail folders.
Please read the UPGRADING section of the
<a href="https://fossies.org/unix/misc/courier-imap-4.10.0.tar.gz:a/courier-imap-4.10.0/INSTALL">INSTALL</a>
notes for details.

<p>
<li><b>www/ntlmaps:</b>
www/ntlmaps has been removed.
You can use www/cntlm as a replacement.

</ul>

<p>
The package tools support in-place updating using <code>pkg_add -u</code>.
For instance, to update all your packages, make sure <code>PKG_PATH</code> is
pointing to the 5.1 packages directory on your CD or nearest FTP mirror,
and use something like

<blockquote><pre>
<b>pkg_add -ui</b>
</pre></blockquote>

where the <code>-u</code> indicates update mode, and <code>-i</code> specifies
interactive mode, so pkg_add will prompt you for input when it encounters
some ambiguity. Read the
<a href="https://man.openbsd.org/OpenBSD-5.1/pkg_add">pkg_add(1)</a>
manual page and the <a href="faq15.html">package management</a>
chapter of the FAQ for more information.

<p>
<a href="index.html">[FAQ Index]</a> |
<a href="upgrade50.html">[4.9 -> 5.0]</a> |
<a href="upgrade52.html">[5.1 -> 5.2]</a>

<hr>
<small>$OpenBSD: upgrade51.html,v 1.25 2019/05/28 01:53:11 bentley Exp $</small>