Thursday, November 24, 2011

CVSUP FreeBSD 8.x and Earlier (Upgrade Kernel to Stable Version)

After set your FreeBSD to connected the internet, you can make it to Stabe Version. Please folow this step below to upgrade your FreeBSD Kernel become Stable Version (to do all step below, you must login as root) :

1. Install CVSUP Without GUI
# cd /usr/ports/net/cvsup-without-gui
# make install clean
If you have to install GUI, I recomend you to do this step :
# cd /usr/ports/net/cvsup
# make install clean
2. Copy CVSUP configuration file to /root :
# cp /usr/share/examples/cvsup/stable-supfile /root
# cp /usr/share/examples/cvsup/ports-supfile /root
3. Editing file stable-supfile and ports-supfile :
Change your directory to /root
# cd /root
Edit file stable-supfile
# ee stable-supfile
Chenge this in file stable-supfile
*default host=cvsup.FreeBSD.org**
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=RELENG_8
***
*default delete use-rel-suffix
src-all
** Change that to the CVSUP mirror in your country
*** Change that to Your FreeBSD version, For example : RELENG_6, RELENG_7, and RELENG_8
Edit file ports-supfile
# ee ports-supfile
Chenge this in file stable-supfile
*default host=cvsup.FreeBSD.org**
*default base=/var/db
*default prefix=/usr
*default release=cvs tag=
.
*default delete use-rel-suffix
ports-all
 ** Change that to the CVSUP mirror in your country
4. CVSUP your FreeBSD :
# cvsup -g -L 2 /root/stable-supfile
# cvsup -g -L 2 /root/ports-supfile
5. Backup your Kernel :
# cd /usr/src/sys/amd64*/conf/
# cp GENERIC Anita-Muy**
* Your PC Architecture, amd64 or i386
** Only for example kernel name, you can change it.
 6. Build and Install your Kernel
# cd /usr/src/
# make buildkernel KERNCONF=Anita-Muy
# make installkernel KERNCONF=Anita-Muy
7. Reboot your PC

No comments: