|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|||
Planning 5.9 -> 6.0 upgrade
The 5.9 -> 6.0 upgrade procedure looks less involved than prior releases. In my case it looks like just the w^x amendment to the fstab and moving the lpd spooling directories. The only firmware I use is for radeon video.
In the past I always did a new install and restored my /home directory from a backup tar.gz. My experience upgrading is based strictly on following current. My question is upgrading the packages. The two options I'm mulling over are 1) Generate list of index packages. Backup /home and configuration. Upgrade base. Disable xdm. Reboot into console. Delete all packages and install from the list. 2) Generate list of index packages. Backup /home and configuration. Disable xdm, reboot into console, and try to upgrade the packages. I have seen prior posts with problems upgrading packages between releases. Is it worth trying? Will the firmware update with the new base install or should I delete radeondrm-firmware-20150927 and reinstall to be safe? The upgrade guide indicates that only the iwn firmware is an issue. A second question: Is there any value to reformating the disk in regards bad sectors, etc.? Last edited by shep; 28th August 2016 at 10:45 PM. Reason: grammer |
|
||||
Generally, when you upgrade, you need only
# pkg_add -u after you have rebooted. All prior libraries are retained, so in most cases the older applications will continue to function, and once applications have been updated you can # pkg_delete -a to remove old libraries that have been updated and now are no longer required. These will have been renamed to .lib* in the package database in /var/db/pkg. Along with old libraries, that will also remove old unneeded dependencies.On extremely rare occasions, there are API changes that prohibit this. You'll see this noted in the Upgrade Guide, with specific steps to take. As an example of this rare occurrence see the OpenBSD Upgrade Guide: 5.4 to 5.5. From memory, this was the second significant API change since the Project was initiated -- the first was the transition to ELF binaries. |
|
|||
Quote:
Either way, as jggimi mentioned the only thing you have to actually do is # pkg_add -u && pkg_delete -a. For the record, the above is essentially what we do at Devio.us and we've upgraded from 4.7 to (soon) 6.0 all on one machine, one release at a time. So I know the pkg_add solution works. Quote:
Quote:
fw_update is essentially a wrapper around pkg_add. OpenBSD effectively treats firmware as packages. |
|
|||
Another upgrade planning question has come up. In the past, I patch/compile the security upgrades for base while using M:tier for package upates. Previously I utilized src.tar.gz, sys.tar.gz and xenocara.tar.gz to populate my build directories. If I recall correctly, after a base install, /usr/src is not completely empty. Is cvs a better way to update the build directories rather than just overwriting the 5.9 /usr/src directory?
|
|
|||
The FAQ use to address extracting -release source tarballs to /usr/src. At this time, all I see in the FAQ is using CVS to obtain source.
I do plan on running release+errata which confusingly the FAQ describes as -stable (not to nitpick but to avoid future readers having a problem). FAQ Quote Quote:
At this time I'll plan on deleting /usr/src/*, extracting the sys/src tarballs and relinking /sys prior to applying any patches |
|
||||
-stable includes all published errata patches, and may also include additional unpublished patches. (Actually, these patches are published, but in CVS commit logs only.)
You need not worry about the /sys link, that link is in your root directory, not in /usr/src. |
|
|||
configuration backup?
I was just wondering about this statement from shep. I have always done my /home with a tarball, but how do I backup my configuration in OpenBSD? All profile specific files should in the /home tarball and all pkg_info should be in the pkg database correct? What configurations would these be?
|
|
||||
Configurations for OpenBSD are generally stored in two places:
The package database isn't directly useful without a matching, synchronized set of installed packages. A full system backup, therefore, should include /usr/local/ as well as /var/. ---- But if you just want to be able to reinstall previously installed 3rd party packages, a simple list of all manually installed packages is all that is needed to install them, such as: $ pkg_info -qm > my.list.of.packages . Restoration is simply # pkg_add -l my.list.of.packages . If you happen to be transitioning between releases, you can add the -z option to the pkg_add(1) command.See the pkg_add(1) and pkg_info(1) man pages for more details. Last edited by jggimi; 10th September 2016 at 02:21 PM. Reason: clarity |
|
|||
Good to know Jggimi... Thank you for the information.
|
|
||||
Just in case it helps someone think it through, here is my general procedure for upgrading from one release to the next. I happen to upgrade my servers from -stable to -stable, but the procedure would be the same, except I point to a local webserver for kernels and filesets during the upgrade, rather than to -release on a nearby mirror.
I take full backups before each upgrade, but that is for rapid restore convenience in the event of any possible problem with an upgraded system. These backups are separate from my normal operational backups of these same servers.
Last edited by jggimi; 11th September 2016 at 12:34 AM. Reason: typos, clarity |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Backup strategies and disaster planning | sherekhan | OpenBSD General | 20 | 24th February 2021 11:21 AM |
PF Upgrade to 5.8 | Roedy | OpenBSD Security | 2 | 20th March 2016 10:15 PM |
upgrade from 4.8 to 5.3 | polken | OpenBSD Installation and Upgrading | 6 | 30th May 2013 05:41 AM |
6.1 RC upgrade | climby | FreeBSD Installation and Upgrading | 2 | 30th September 2010 12:51 PM |
upgrade from 5.5 to 6.3 | keithlybsd | FreeBSD Installation and Upgrading | 9 | 27th May 2008 06:21 PM |