|
OpenBSD Installation and Upgrading Installing and upgrading OpenBSD. |
|
Thread Tools | Display Modes |
|
|
|||
upgrade current
Hello
i will upgrade my current Code:
# uname -a OpenBSD cray.my.domain 5.6 GENERIC.MP#692 amd64 Code:
mkdir ~/upgradefiles ; cd ~/upgradefiles ftp ftp://openbsd.cs.fau.de Code:
cd pub/OpenBSD/snapshots/amd64 prompt mget SHA* mget bsd* mget *.tgz then i have to do Code:
rm /obsd ln /bsd /obsd && cp bsd.mp /bsd cp bsd.rd / Code:
tar -C / -xzphf xserv55.tgz tar -C / -xzphf xfont55.tgz tar -C / -xzphf xshare55.tgz tar -C / -xzphf xbase55.tgz tar -C / -xzphf game55.tgz tar -C / -xzphf comp55.tgz tar -C / -xzphf man55.tgz tar -C / -xzphf base55.tgz Code:
sysmerge |
|
||||
Do not perform a "manual" upgrade (unpacking tarballs yourself on a running OpenBSD system) if you have console access to the computer being upgraded. The supported best practice is to boot the new RAMDISK kernel and run its upgrade script.
Here are the steps I recommend.
Last edited by jggimi; 3rd January 2015 at 05:48 PM. Reason: typos, clarity, corrected links |
|
|||
kerasi, I'm going to reiterate jggimi's first point by emphasizing again the importance of backing up critical data. As a newcomer to OpenBSD, you will undoubtedly make mistakes. Everyone new to an unfamiliar to a new environment will. Save yourself the agony of losing what can't be replaced by backing it up now.
The OpenBSD community is small, & much responsibility is placed on its users to pro-actively learn how to use it. Studying the official FAQ is not just a platitude, it is a requirement. |
|
|||
Quote:
I don't remember if I use the h flag or not in the tar command but yes it's generally fine to do though I only tend to do this when upgrading from one release to another and not from -current to a newer -current. The booting off the new /bsd.rd method as jggimi recommended is much more likely to prevent mistakes and is generally easier to get support from. It also takes are of all the signature checking for you which is a nice plus. Until you're really used to OpenBSD, stick to the /bsd.rd method. |
|
|||
Hi
I think upgrade is for me to difficult, how can i save my home folder? What is the code for that? Then i will burn a new cd with new snapshot |
|
||||
FAQ 14.10 shows an example of using dump(8) and restore(8) to backup and then restore a complete system with a tape device. Read about the -f option to dump/restore filesystems with other special devices, files, and standard input/output.
FAQ 10.2 shows examples of using dump(8)/restore(8) or tar(1) to copy a filesystem. If the upgrade script is too difficult -- do not attempt unpacking of filesets on a running system as you had originally intended. Not only is the actual process much more complicated than upgrading by script, it is possible new commands will not run with the old kernel, or old commands will not run with the new kernel. |
|
|||
If you have an USB stick that is large enough to save the contents of your home directory you could have a look at Using rsync to synchronize or mirror your home directory files to an USB stick
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
|||
hello
i have a USB Transcend StoreJet 25M3 1GB, i will save my home directory files there. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
upgrade from 4.8 to 5.3 | polken | OpenBSD Installation and Upgrading | 6 | 30th May 2013 05:41 AM |
Keyboard layout lost after upgrade to -current | sepuku | OpenBSD General | 28 | 23rd September 2011 08:37 PM |
OpenBSD4.5 current to current... | valorisa | OpenBSD Installation and Upgrading | 7 | 6th June 2009 09:26 AM |
How do I upgrade? | wubrgamer | FreeBSD Ports and Packages | 2 | 27th August 2008 07:18 PM |