Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Sep 2008 13:37:41 +0200
From:      Ivan Voras <ivoras@freebsd.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: kernel upgrades
Message-ID:  <gb02tt$pe0$1@ger.gmane.org>
In-Reply-To: <BAY117-DS443FBC6BB1398C6E772A49B4E0@phx.gbl>
References:  <BAY117-DS443FBC6BB1398C6E772A49B4E0@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
Joe Tseng wrote:
> I'm still new to FreeBSD (coming from CentOS/Ubuntu) so this might be
> something totally obvious to others...  I know I can update ports by using
> portsnap fetch/extract/update - does this update the kernel source as well?

No, you need to do two things:

1) copy /usr/share/examples/cvsup/standard-supfile somewhere, and edit
it to fetch the right version of the sources from the right server. If
you want to get exactly the version you have installed, you only need to
change the server. Look for the line starting with "*default host=" and
find a host near you from this page:
http://www.freebsd.org/doc/en/books/handbook/cvsup.html
2) run "csup your-supfile" - this will fetch kernel and base system
sources (note that utilities like "ls", "top", "sendmail" etc. are not
ports in FreeBSD; also note that the cvsup client integrated into the
base system in all recent versions of FreeBSD is "csup" not "cvsup".

> How do I apply this new code?

Read here:
http://www.freebsd.org/doc/en/books/handbook/kernelconfig.html and
here:http://www.freebsd.org/doc/en/books/handbook/makeworld.html

In short:

# cd /usr/src
# make buildworld && make kernel && make installworld && mergemaster -U
&& reboot



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFI048FldnAQVacBcgRAkV4AJ9HJ36yDRJhyfp0wZd/FUcRCPThcwCgo7ph
OcSHUZy/h3Gi7Xr27QotybQ=
=0KlC
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gb02tt$pe0$1>