Upgrade FreeBSD to Stable Version

 

after 2 years running, i forget to upgrade my mail server to stable version ( wat de f@!#$!!). Not like my others server, My mail server only for backup server (before). So I am not consentrate with it. But now it is also my main server for email. so i must upgrade the version to stable and update other running application on it. Here i write down how to upgrade FreeBSD to stable version.

before you do it, make sure you understand of what you doing and prepare some coffee and "cemilan", coz its take more than 3 hour prosess ( depend on your computer resource and bandwidth)

Bismillahirohmanirohim…..

first, lets check my mail server version
mail# uname -a
FreeBSD mail.pagongxx.xxx.xx 6.1-RELEASE FreeBSD 6.1-RELEASE #0: Tue Oct 16 14:26:49 WIT 2007 bimo@mail.pagongxx.xxx.xx:/usr/src/sys/i386/compile/KERNEL1 i386
mail#

oke..still Release version, lets make it STABLE VERSION….

we must install cvsup first,
mail#cd /usr/ports/net/cvsup-without-gui
mail#make install clean
now, edit file called stable-supfile on /usr/share/examples/cvsup/ directory

mail#ee /usr/share/examples/cvsup/stable-supfile

edit this field:

default host= cvsup2.freebsd.org or cvsup3.freebsd.org
save it.

or you can see at http://www.freebsd.org/doc/en_US.ISO8859 - /books/handbook/cvsup.html#CVSUP-MIRRORS

then,
mail#cvsup -g -L 2 /usr/share/examples/cvsup/stable-supfile

now, rebuild your kernel, here is the steps
mail# cd /usr/src
mail# make buildworld
mail# make buildkernel KERNCONF=YOUR_KERNEL_NAME
mail# make installkernel KERNCONF=YOUR_KERNEL_NAME
mail# reboot

mail# mergemaster -p
mail# make installworld
mail# mergemaster

But i suggest you to back up your file in /etc/ directory before you do mergemaster

mail# cp -Rp /etc /etc.old
mergemaster -p use for pre-buildworld mode. Its use to compare ecensial file for successfull buildworld.

-finish-

its status today,

mail# uname -a
FreeBSD mail.pagongxx.xxx.xx 6.4-STABLE FreeBSD 6.4-STABLE #0: Fri Feb 20 02:46:47 WIT 2009 bimo@mail.pagongxx.xxx.xx:/usr/obj/usr/src/sys/KERNEL1 i386
mail#

its easy right?
for detail, you can visit http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/current-stable.html

 

This entry was posted on Monday, February 23rd, 2009 at 12:29 am and is filed under FreeBSD, Good Stories. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

One Response to “Upgrade FreeBSD to Stable Version”

 
  1. bimo Says:

    wah jagoan linux ya juragan… mantap..

Leave a Reply