PDA

View Full Version : Upgrading from 7.2 to 8.0


mharvey87
February 8th, 2010, 09:03
So how do I upgrade my system because everything i read in http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html was a load of crap and didn't work. Sources are installed but there is not /usr/src/UPGRADING file. Doesnt know how to "make buildworld" in any of the relevant directories in /usr/src/sys. WTF?

SirDice
February 8th, 2010, 09:04
So how do I upgrade my system because everything i read in http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/makeworld.html was a load of crap and didn't work. Sources are installed but there is not /usr/src/UPGRADING file. Doesnt know how to "make buildworld" in any of the relevant directories in /usr/src/sys. WTF?

Ok.. It's not crap. It simply means you failed somewhere. Now go back and read up on getting the source tree.

mharvey87
February 8th, 2010, 09:04
I'm not really interested in being targeted by http://seclists.org/fulldisclosure/2009/Nov/371 or anything similar so this is pretty important.

mharvey87
February 8th, 2010, 09:05
Dude I did, installed it right off the same CD. all directories are empty up to /usr/src/sys. Possible media problem, I'll check.

SirDice
February 8th, 2010, 09:09
Then you didn't install the source tree. No worries mate.. You can get it using csup. Just copy /usr/share/examples/cvsup/stable-supfile and edit it. Change the csup server to a mirror close to you.

Use RELENG_8 if you want 8-STABLE or RELENG_8_0 if you want 8.0-RELEASE (with patches).

Let it run csup stable-supfile and you will have the sources in /usr/src.

mharvey87
February 8th, 2010, 09:17
Since this is the first time I've updated like this I just want to make sure I dont do anything dumb. So I would uncomment the "host=CHANGE_THIS.FreeBSD.org" and also I would replase the RELENG_7 in "*default release=cvs tag=RELENG_7" with "RELENG_8"? Is that everything, do I have to copy the file and put it anywhere?

mharvey87
February 8th, 2010, 10:00
syntax error on the host line

gilinko
February 8th, 2010, 10:09
Did you change "CHANGE_THIS" to an actual mirror from this list? (http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html#CVSUP-MIRRORS) as stated in the comment above the host line ;)

mharvey87
February 8th, 2010, 10:17
Yeah its

# You may wish to change some of the settings in this file to better
# suit your system:
#
host=cvsup.us.FreeBSD.org

gilinko
February 8th, 2010, 12:50
Yeah its

# You may wish to change some of the settings in this file to better
# suit your system:
#
host=cvsup.us.FreeBSD.org


That should be:
*default host=cvsup.us.FreeBSD.org

The *default is needed for the cvsup/csup to understand the file. And it should exist on the base, prefix etc lines also. So replace those parts if you have deleted them.

tangram
February 8th, 2010, 15:31
Example of a FreeBSD 8.0-RELEASE supfile:
*default host=cvsup1.us.FreeBSD.org
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_8_0
*default delete use-rel-suffix
*default compress
src-all


More info at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvsup.html.

jnbek
February 8th, 2010, 15:42
or you can install fastest_cvsup and use it like so:

cvsup -h `fastest_cvsup -q -c us` -g /path/to/supfile

to get the fastest mirror available.
http://www.freebsd.org/cgi/url.cgi?ports/sysutils/fastest_cvsup/pkg-descr

DutchDaemon
February 8th, 2010, 15:57
Use csup, not cvsup.