|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Upgrade from version 3.7
Hi all,
I have actually an OpenBSD box Version 3.7. Can someone help me understand the process to upgrade the OS to the last stable version ? Only PF is running on it. Thank you, |
|
|||
Upgrading only works between the last two releases, 4.4->4.5 and 4.5->4.6.. upgrading from 3.7 to 4.6 is unsupported.
The best method of updating this system would be to preform a clean 4.6 installation and migrate the previous configuration manually (..from a backup). PF syntax has changed over time, copying 3.7 pf.conf verbatim will not work.. you will have to make some changes, the PF FAQ and man pages can help you with this. Feel free to ask additional questions, we'll certainly try to help make it easier for you. Last edited by BSDfan666; 5th January 2010 at 04:53 PM. |
|
|||
Thank you BSDFan666,
Actually my only way to backup is to keep: pf.conf hostname.xx0... resolv.conf mygate.conf Is that enough ? |
|
|||
I don't know enough about your system, I'd recommend that you create an archive of both /etc and /var and store them safely on another system (..tar/cpio/dump etc).
This will allow you to carefully review everything and then you can selectively merge things later. It's better to have them and not need them, then need them and not have them. Do you SSH to this system? you may wish to at least retain the host keys. |
|
|||
Of course, there is whatever personal data you may have.
Of the files mentioned above, note that PF has radically changed since OpenBSD 3.7 -- to the point where of essentially being completely rewritten. Whatever pf.conf you have now in 3.7 is likely to incompatible, however, you can use it as the basis to rewriting in 4.6. As for the other files mentioned, I don't recall that there has been changes to resolv.conf. There are also the password file, configurations to DHCP if you are running the server, & any other daemon which you may have customized. Note that you can upgrade from 3.7, but you will need to upgrade incrementally from 3.7 t o3.8, 3.8 to 3.9, etc.. all the way up to 4.6 Personally, I would copy anything of value, & simply reinstall given the laborious process of updating successive versions, but what you do is your choice. |
|
|||
The incremental update, while possible.. will leave additional "cruft" around the system, like previous shared libraries and perhaps binaries (..removed from newer releases).
I honestly don't know how long the OpenBSD kernel retains binary compatible with past releases, so as I mentioned.. a clean reinstall of 4.6 is probably the better option. |
|
|||
Thank you guys,
I will try to have a better view of what look like 4.6 on a test machine. And then start rewriting every thing.. that will be a damn work .. |
|
|||
Honestly, you shouldn't let systems run unmaintained for so many years.. they need to be a priority.. releases happen every 6 months, security/reliability updates are made available on the errata page.
All-in-all, a release is supported by the developers for 12 months.. plenty of time to prepare a decent upgrade policy. |
|
|||
Buy yourself a 4GB USB stick for 10 bucks/euro's and backup the whole system to in. That way you always can get things back.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
kernel version 0?? | Stellar | OpenBSD General | 5 | 30th August 2009 11:07 PM |
My version of pkg_add :) | DNAeon | FreeBSD Ports and Packages | 26 | 15th October 2008 06:58 AM |
version of OpenBSD | milo974 | OpenBSD General | 1 | 6th August 2008 08:24 AM |
[FreeBSD] which version of PostgreSQL? | MacApp | FreeBSD Ports and Packages | 8 | 12th July 2008 09:25 AM |
How I can have two version of zsh | mfaridi | FreeBSD Ports and Packages | 7 | 15th May 2008 05:56 PM |