upgrade from FBSD from 8.0-release to stable-8

Polytropon freebsd at edvax.de
Sun Jun 6 16:18:27 UTC 2010


On Sun, 6 Jun 2010 13:37:58 +0000, Giorgos Tsiapaliokas <terietor at gmail.com> wrote:
> hello,
> 
> i have seach to net but i haven't find a way to update my system from
> 8.0-release to stable-8.
> 
> can you tell me a way to do this?

Basically, this process contains two main steps: fetching the
sources, and compiling and installing the system.

Step 1 can easily be done by using csup (it's in the base) with
the following configuration:

This into /etc/make.conf:
	SUP_UPDATE=	yes
	SUP=		/usr/bin/csup
	SUPFLAGS=	-g -L 2
	SUPHOST=	cvsup.freebsd.org
	SUPFILE=	/etc/sup/stable.sup

This into /etc/sup/stable.sup:
	*default host=cvsup.freebsd.org
	*default base=/var/db
	*default prefix=/usr
	*default release=cvs tag=RELENG_8
	*default delete use-rel-suffix
	*default compress
	src-all

You can of course select a mirror near your location.

The tag= parameter selects what you will get, e. g. a certain
specifig RELEASE, patches for a RELEASE, STABLE, or even CURRENT.
The keyword RELENG_8 will give you 8-STABLE.

If you've updated your sorces, read /usr/src/UPDATING, and for the
steps how to start, refer to /usr/src/Makefile. You can also add
compiling options to /etc/make.conf to be involved here; a typical
setting could be setting CPUTYPE.

Then you start.

	# cd /usr/src
	# make buildworld buildkernel
	# make installkernel

Then reboot into single user mode:

	# reboot
	...
	Ok
	boot -s
	...

When arrived in single user mode, check your partitions via fsck,
and then mount them (mount -a).

	# cd /usr/src
	# mergemaster -p
	# make installworld
	# make delete-old
	# mergemaster
	# reboot

When you now have reached multi user mode again, finally do

	# cd /usr/src
	# make delete-old-libs

Check the result via

	# uname -a

If you do have a custom kernel, add KERNCONF=<name> to the make
calls, e. g.

	# make buildkernel KERNCONF=FOOBAR

or

	# make installkernel KERNCONF=FOOBAR

respectively.

Finally, see the excellent documentation in the FreeBSD Handbook.
It should cover everything that hasn't been mentioned yet.


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...


More information about the freebsd-questions mailing list