OpenBSD
Upgrade Guide: 3.4 to 3.5
[FAQ Index] |
[3.5 -> 3.6]
Note: Upgrades are only supported from release to release, it
is recommended that you NOT skip releases.
Before upgrading...
Before upgrading, some users choose to remove all
packages, and installing
new versions after upgrade.
To quickly remove all packages from your system:
pkg_delete -q /var/db/pkg/*
After the upgrade, install the new versions of these applications.
The upgrade process may overwrite some X configuration files, you may
wish to backup your /etc/X11
directory before upgrading.
Upgrading by install media
The easiest and safest way to upgrade from binary files is to boot from
install media and follow the upgrade steps, which are very similar to
the install process.
Afterwards, do the /etc
updates below.
Upgrading without install media
This is not the recommended process. Use the install media method
if at all possible!
Sometimes, one needs to do an upgrade of a machine that one can't easily
use the normal upgrade process.
One can usually do this by carefully following a process similar to a
source-based upgrade:
- Place install files in a "good" location.
Make sure you have sufficient room!
- Install new kernel(s)
cd /path
rm /obsd ; ln /bsd /obsd && cp bsd /nbsd && mv /nbsd /bsd
cp bsd.rd /
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.
- Reboot on the new kernel
This might be a tempting step to skip, but it should be done now, as
usually, the new kernel will run old userland apps (such as the soon to
be important reboot
!), but often a new userland will NOT
work on the old kernel.
- Stop any applications which might cause problems in the following
steps.
- Install new userland applications
cd /
tar xzpf /path/base35.tgz
tar xzpf /path/comp35.tgz
tar xzpf /path/game35.tgz
tar xzpf /path/man35.tgz
tar xzpf /path/misc35.tgz
tar xzpf /path/xbase35.tgz
tar xzpf /path/xfont35.tgz
tar xzpf /path/xserv35.tgz
tar xzpf /path/xshare35.tgz
Note: 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 sets now.
Also note that etc35.tgz
is NOT unpacked here, as it is handled
separately.
- Update
/dev
.
The new
MAKEDEV
file will be copied to /dev by the installation of
base35.tgz
, so you simply need to do the following:
cd /dev
./MAKEDEV all
Also see any version-specific notes below.
- Upgrade
/etc
as below.
- Reboot
During this process,
sendmail(8)
may produce some error messages like the following:
Nov 1 12:47:05 puffy sm-mta[16733]: filesys_update failed: No such file or directory, fs=., avail=-1, blocksize=380204
These messages can be safely ignored, or you may wish to halt
sendmail(8) during the upgrade process.
Updates to /etc
Whether you upgrade by using an install media and doing a formal
"upgrade" process, or do a "in-place" binary upgrade, there are certain
manual steps that have to be performed.
New users and groups
A number of daemons have been reworked to drop privilege or use
privilege separation, thus new users and groups are required.
As root, add the following users and groups, using
useradd(8):
useradd -u74 -g=uid -c"pflogd privsep" -d/var/empty -s/sbin/nologin _pflogd
useradd -u75 -g=uid -c"BGP Daemon" -d/var/empty -s/sbin/nologin _bgpd
useradd -u76 -g=uid -c"tcpdump" -d/var/empty -s/sbin/nologin _tcpdump
These steps will add both the new users and their corresponding groups.
Your environment may allow you to cut/paste those commands.
/etc
file changes
You will want to extract the etc35.tgz
files to a temporary
location:
cd /tmp
tar xzpf /path/etc35.tgz
Files that can probably be copied from etc35.tgz
"as is":
bgpd.conf
changelist
locate.rc
moduli
netstart
pf.os
protocols
rc
security
sensorsd.conf
services
var/named/standard/root.hint
mtree/*
Note that it IS possible to locally modify these files, if this has been
done, manual merging will be needed.
Here are copy/paste lines for copying these files, assuming you unpacked
etc35.tgz
in the above recommended place:
cd /tmp/etc
cp bgpd.conf changelist locate.rc moduli netstart pf.os \
protocols rc security sensorsd.conf services /etc
cp mtree/* /etc/mtree/
cp ../var/named/standard/root.hint /var/named/standard
Files that must be manually merged, respecting any local
changes made to them:
ftpusers
inetd.conf
login.conf
lynx.cfg
newsyslog.conf
rc.conf
rc.local
remote
sysctl.conf
ttys
mail/*
Finally, use
mtree(8)
to create any new directories:
mtree -qdef /etc/mtree/4.4BSD.dist -p / -u
After the final reboot, you should have a fully functional 3.5 system.
At this point, you can upgrade to 3.6 if
desired.
[FAQ Index] |
[3.5 -> 3.6]
$OpenBSD: upgrade35.html,v 1.16 2019/05/28 01:53:11 bentley Exp $
¡®Yes, sir. I felt sure you understood that. She said she had told you.¡¯ "Why, eh,--I--I don't know that my movements need have anything to do with his. Yours, of course,--" "Ah, but if it saved your life!" "No, I'm not," grumbled the Doctor, "I've had enough of this wild-goose chase. And besides, it's nearly dinner time." "I am coming to that," Lawrence said, lighting a fresh cigarette. "As soon as Bruce was in trouble and the plot began to reel off I saw that it was mine. Of course there were large varyings in the details, but the scheme was mine. It was even laid on the same spot as my skeleton story. When I grasped that, I knew quite well that somebody must have stolen my plot." Judy In a coach-house, through which we passed on our way to see the prince's favourite horses with the state carriages¡ªquite commonplace and comfortable, and made at Palitana¡ªwas a chigram,[Pg 68] off which its silk cover was lifted; it was painted bright red and spangled with twinkling copper nails. This carriage, which is hermetically closed when the Ranee goes out in it, was lined with cloth-of-gold patterned with Gohel Sheri's initials within a horseshoe: a little hand-glass on one of the cushions, two boxes of chased silver, the curtains and hangings redolent of otto of roses. "Are you certain of it? You have seen so very little of him, and you may be mistaken." "And your wife?" "I drawed on my man's bundle o' wood," said Gid, "and then dropped a little, so's to git him where he was biggest and make sure o' him." HoME²¨¶àÒ°½áÒÂ×óÏßÊÓÆµ
ENTER NUMBET 0016www.fjchain.com.cn
www.gzyhncp.com.cn
www.haodin.com.cn
www.icsngr.com.cn
skwallet.com.cn
uqsboc.com.cn
tfchain.com.cn
www.tealove.com.cn
www.spylkj.com.cn
www.h3art.com.cn