Most recent edit on 2011-10-07 22:11:05 by JimLucas
Additions:
cp -rp afs/ mail/ mtree/ systrace/ rc.d/ bgpd.conf changelist daily dhclient.conf disktab ksh.kshrc man.conf moduli monthly netstart ospf6d.conf pf.os protocols rc rc.conf remote security services sysctl.conf weekly /etc
export PKG_PATH=ftp://ftp5.usa.openbsd.org/pub/OpenBSD/`uname∞ -r`/packages/`uname -m`/
wget ftp://ftp5.usa.openbsd.org/pub/OpenBSD/`uname∞ -r`/ports.tar.gz
Deletions:
cp -rp afs/ mail/ mtree/ systrace/ rc.d/ /etc/
cp -p changelist daily dhclient.conf disktab ksh.kshrc man.conf moduli monthly netstart pf.os protocols rc rc.conf remote security services weekly /etc
take a look at the following files to find out if their are any changes that need to be manually copied over
cp -p bgpd.conf ospf6d.conf sysctl.conf /etc
export PKG_PATH=ftp://ftp.usa.openbsd.org/pub/OpenBSD/<version>/packages/i386/∞
wget ftp://ftp5.usa.openbsd.org/pub/OpenBSD/<version>/ports.tar.gz∞
Edited on 2011-09-10 15:12:31 by JimLucas
Additions:
cp -p changelist daily dhclient.conf disktab ksh.kshrc man.conf moduli monthly netstart pf.os protocols rc rc.conf remote security services weekly /etc
Deletions:
cp -p changelist daily disktab ksh.kshrc man.conf moduli monthly netstart pf.os protocols rc rc.conf remote security services weekly /etc
Edited on 2011-08-28 17:58:33 by JimLucas
Additions:
This document describes upgrading an OpenBSD
In this document I will show you the process that I used to upgrade my servers running the Openbsd∞ operating system. The official upgrade documentation can be found here∞.
Deletions:
This document describes upgrading an OpenBSD machine
In this document I will show you the process that I used to upgrade my servers running the Openbsd∞ operating system.
Edited on 2011-08-28 17:23:18 by JimLucas
Additions:
The reason I say surprise on that last one is because I didn't realize that they introduced some /etc/rc.d/* scripts into the mix of starting things. I had to make a site visit when I didn't copy the ./etc/rc.d/* files from the etc50.tgz package into the /etc/ folder. Lets just say, the only thing the box did was respond to ping and allow me to log in at the console. I made one more copy (cd /usr/src/snapshots/etc/; cp -rp rc.d/ /etc/) and then rebooted. All was good.
I start first by simply copying over all files and directories that I know I have never modified. You might have, so prune the list as needed. Don't just cut/paste here, you might kick yourself later.
Finally, you should manually compare your current /etc/rc.local and the new one in /usr/src/snapshots/etc/rc.local Make sure to move over all your custom changes from your existing /etc/rc.local file. Upgrade other parts of /etc as needed
reboot
once your machine is upgraded, you can update both your ports tree and installed packages very easily:
Deletions:
The reason I say surprise on that last one is because I didn't realize that they introduced some /etc/rc.d/* scripts into the mix of starting things. I had to make a site visit when I didn't copy the ./etc/rc.d/* files from the etc50.tgz package into the /etc/ folder. Lets just say, the only thing the box did was respond to ping and allow me to log in at the console. Well, I simply made one more copy (cd /usr/src/snapshots/etc/; cp -rp rc.d/ /etc/) and then rebooted. All was good.
I start first by simply copying over all files and directories that I know I have never modified. You might have, so prune the list as needed. Don't just cut/paste here, you might kick yourself in the ass later.
Finally, you should manually compare your current /etc/rc.local and the new one in /usr/src/snapshots/etc/rc.local Make sure to move over all your custom changes from your existing /etc/rc.local file.
upgrade other parts of /etc as needed
reboot
once your machine is upgraded, you can update both your ports tree
and installed packages very easily:
Edited on 2011-08-28 17:21:13 by JimLucas
Additions:
Edited on 2011-08-28 17:20:53 by JimLucas
Deletions:
Edited on 2011-08-28 17:20:05 by JimLucas
No differences.
Edited on 2011-08-28 17:19:41 by JimLucas
Additions:
In this document I will show you the process that I used to upgrade my servers running the Openbsd∞ operating system.
I have performed this step on various versions including: 4.1 to 4.3, 4.3 to 4.5, 4.5 to 4.9, and finally now (with a little surprise) 4.9 to 5.0-current.
The reason I say surprise on that last one is because I didn't realize that they introduced some /etc/rc.d/* scripts into the mix of starting things. I had to make a site visit when I didn't copy the ./etc/rc.d/* files from the etc50.tgz package into the /etc/ folder. Lets just say, the only thing the box did was respond to ping and allow me to log in at the console. Well, I simply made one more copy (cd /usr/src/snapshots/etc/; cp -rp rc.d/ /etc/) and then rebooted. All was good.
and/or
Deletions:
In this document we will discuss the process for upgrading or updating the Openbsd operating system.
Currently, my machine is running "OpenBSD 4.1 Generic" i386 version
I am going to attempt to update/upgrade it this evening to "OpenBSD current"
Here is a rough copy of the instructions to do so:
If you have a /usr/ports and it needs updated, do this
Edited on 2011-08-26 21:50:50 by JimLucas
Additions:
upgrade installed packages
update ports tree
If you do not have a ports tree, you have two options to obtain a copy of the current ports tree
or
wget ftp://ftp5.usa.openbsd.org/pub/OpenBSD/<version>/ports.tar.gz∞
tar zxf ports.tar.gz
Deletions:
1. upgrade installed packages
2. update ports tree
If you do not have a ports tree, do this
Edited on 2011-08-26 21:31:02 by JimLucas
Additions:
cp -rp afs/ mail/ mtree/ systrace/ rc.d/ /etc/
Deletions:
cp -rp afs/ mail/ mtree/ systrace/ /etc/
Edited on 2011-08-26 21:29:43 by JimLucas
Additions:
Create a place to store upgrade files...
Install the kernel and the userland
Compare your /etc/* with the new /usr/src/snapshots/etc/* files
reboot
Deletions:
Example #1
here's generally how i upgrade when i'm not going between minor versions
(upgrades from 3.3 or earlier should be done via CD unless you are
prepared to work around binary compatibility issues)
1. Create a place to store upgrade files...
2. Install the kernel and the userland
3. Compare your /etc/* with the new /usr/src/snapshots/etc/* files.
5. reboot
Edited on 2011-08-24 12:03:38 by JimLucas
Additions:
cp -p bgpd.conf ospf6d.conf sysctl.conf /etc
Deletions:
cp -p bgpd.conf newsyslog.conf ospf6d.conf pf.conf sudoers sysctl.conf /etc
Edited on 2011-08-24 12:02:29 by JimLucas
Additions:
for i in /usr/src/snapshots/*<version>.tgz; do tar xzvpf $i; done
3. Compare your /etc/* with the new /usr/src/snapshots/etc/* files.
I start first by simply copying over all files and directories that I know I have never modified. You might have, so prune the list as needed. Don't just cut/paste here, you might kick yourself in the ass later.
Now, create a diff of what is left. Copy any relevant lines from the new etc/* files to your existing /etc/* files.
for i in *; do diff -ur /etc/$i $i
/usr/src/snapshots/etc.diff; done
Finally, you should manually compare your current /etc/rc.local and the new one in /usr/src/snapshots/etc/rc.local Make sure to move over all your custom changes from your existing /etc/rc.local file.
Deletions:
for i in /usr/src/snapshots/*<version>.tgz; do
tar xzvpf $i
done
3. diff /etc
for i in *; do
diff -ur /etc/$i $i
/usr/src/snapshots/etc.diff
done;
4. upgrade /etc
copy over stuff from /usr/src/snapshots/etc that has changed
..at a minimum, you should..
You should manually compare your current /etc/rc.local and the new one in /usr/src/snapshots/etc/rc.local Make sure to move over all your custom changes from your existing /etc/rc.local file.
Edited on 2011-08-24 11:52:20 by JimLucas
Additions:
diff -ur /etc/$i $i
/usr/src/snapshots/etc.diff
done;
Deletions:
diff -ur /etc/$i $i
/usr/src/snapshots/etc.diff
Edited on 2011-08-24 11:46:34 by JimLucas
Additions:
Example #1
1. Create a place to store upgrade files...
cd /usr/src/
mkdir snapshots
cd snapshots
2. Install the kernel and the userland
for i in /usr/src/snapshots/*<version>.tgz; do
cd /usr/src/snapshots/etc
diff -ur /etc/$i $i
/usr/src/snapshots/etc.diff
less /usr/src/snapshots/etc.diff
copy over stuff from /usr/src/snapshots/etc that has changed
cd /usr/src/snapshots/etc/
rm -r /etc/afs/ /etc/mail/ /etc/mtree/ /etc/systrace/
take a look at the following files to find out if their are any changes that need to be manually copied over
You should manually compare your current /etc/rc.local and the new one in /usr/src/snapshots/etc/rc.local Make sure to move over all your custom changes from your existing /etc/rc.local file.
upgrade other parts of /etc as needed
Deletions:
%%Example #1
1. first, go into /tmp and get the shitz:
cd /tmp
2. next, install the kernel and the userland
for i in /tmp/*<version>.tgz; do
cd /tmp
cd /tmp/etc
diff -ur /etc/$i $i
/tmp/ff
more /tmp/ff
<copy over stuff from /tmp/etc that has changed>
rm -r /etc/afs/
rm -r /etc/mail/
rm -r /etc/mtree/
rm -r /etc/systrace/
take a look at the following files to find out if their are any changes that
need to be manually copied over
You should manually compare your current /etc/rc.local and the new one in
/tmp/etc/rc.local Make sure to move over all your custom changes from your
existing rc.local file.
<upgrade other parts of /etc as needed>
Edited on 2010-08-31 23:15:32 by JimLucas
Additions:
rm -r /etc/systrace/
cp -rp afs/ mail/ mtree/ systrace/ /etc/
cp -p changelist daily disktab ksh.kshrc man.conf moduli monthly netstart pf.os protocols rc rc.conf remote security services weekly /etc
Deletions:
cp -rp afs/ mail/ mtree/ /etc/
cp -p changelist daily ksh.kshrc moduli monthly netstart pf.os protocols rc rc.conf security services weekly /etc
Edited on 2010-08-13 22:51:36 by JimLucas
Additions:
prompt
cp -p changelist daily ksh.kshrc moduli monthly netstart pf.os protocols rc rc.conf security services weekly /etc
Deletions:
cp -p changelist daily ksh.kshrc moduli monthly netstart pf.os protocols \
rc rc.conf security services weekly /etc
Edited on 2010-01-25 16:45:54 by JimLucas
Additions:
Here is a rough copy of the instructions to do so:
Example #1
here's generally how i upgrade when i'm not going between minor versions
(upgrades from 3.3 or earlier should be done via CD unless you are
prepared to work around binary compatibility issues)
1. first, go into /tmp and get the shitz:
cd /tmp
ftp ftp.usa.openbsd.org
anonymous
guest
cd /pub/OpenBSD/<version>/packages/i386
mget bsd *.tgz
quit
2. next, install the kernel and the userland
mv /bsd /bsd-<old_version>
mv ./bsd /bsd
tar xzvpf etc<version>.tgz
mv etc<version>.tgz etc<version>.tgz.old
cd /
for i in /tmp/*<version>.tgz; do
tar xzvpf $i
done
cd /tmp
3. diff /etc
cd /tmp/etc
for i in *; do
diff -ur /etc/$i $i >>/tmp/ff
4. upgrade /etc
more /tmp/ff
<copy over stuff from /tmp/etc that has changed>
..at a minimum, you should..
rm -r /etc/afs/
rm -r /etc/mail/
rm -r /etc/mtree/
cp -rp afs/ mail/ mtree/ /etc/
cp -p changelist daily ksh.kshrc moduli monthly netstart pf.os protocols \
rc rc.conf security services weekly /etc
take a look at the following files to find out if their are any changes that
need to be manually copied over
cp -p bgpd.conf newsyslog.conf ospf6d.conf pf.conf sudoers sysctl.conf /etc
You should manually compare your current /etc/rc.local and the new one in
/tmp/etc/rc.local Make sure to move over all your custom changes from your
existing rc.local file.
<upgrade other parts of /etc as needed>
5. reboot
once your machine is upgraded, you can update both your ports tree
and installed packages very easily:
1. upgrade installed packages
export PKG_PATH=ftp://ftp.usa.openbsd.org/pub/OpenBSD/<version>/packages/i386/
pkg_add -u -F update,alwaysupdate,updatedepends
2. update ports tree
If you do not have a ports tree, do this
cd /usr/
cvs -d anoncvs@anoncvs.openbsd.org:/cvs -q co ports
If you have a /usr/ports and it needs updated, do this
cd /usr/ports
cvs -d anoncvs@anoncvs.openbsd.org:/cvs -q up -Pd
Oldest known version of this page was edited on 2008-04-17 23:33:52 by JimLucas []
Page view:
This document describes upgrading an OpenBSD machine
In this document we will discuss the process for upgrading or updating the Openbsd operating system.
Currently, my machine is running "
OpenBSD 4.1 Generic" i386 version
I am going to attempt to update/upgrade it this evening to "
OpenBSD current"