일단 포트가 설치 되어 있는지 확인한다.
/usr/ports 디렉토리가 존재하지 않는다면.. ports를 설치하지 않은 것이다..
ruo91# /stand/sysinstall 해서
configure -> distributions -> ports 로 이동해 설치를 하면 된다.
ports 업그레이드를 위해서는 cvsup이라는 프로그램이 있어야 한다.
ruo91# cd /usr/ports/net/cvsup-without-gui/
ruo91# make install clean
**cvsup-without-gui는 gui기능이 빠진 cvsup입니다..
설치후..
ruo91# cd /usr/share/examples/cvsup/
ruo91# ls -al
total 40
drwxr-xr-x 2 root wheel 512 Dec 2 19:24 .
drwxr-xr-x 42 root wheel 1024 Feb 25 2008 ..
-r--r--r-- 1 root wheel 1180 Feb 25 2008 README
-r--r--r-- 1 root wheel 5221 Feb 25 2008 cvs-supfile
-r--r--r-- 1 root wheel 2633 Feb 25 2008 doc-supfile
-r--r--r-- 1 root wheel 2286 Feb 25 2008 gnats-supfile
-r--r--r-- 1 root wheel 3810 Feb 25 2008 ports-supfile
-r--r--r-- 1 root wheel 367 Feb 25 2008 refuse
-r--r--r-- 1 root wheel 1949 Feb 25 2008 refuse.README
-r--r--r-- 1 root wheel 3914 Feb 25 2008 stable-supfile
-r--r--r-- 1 root wheel 3050 Feb 25 2008 standard-supfile
-r--r--r-- 1 root wheel 2357 Feb 25 2008 www-supfile
ruo91# mkdir /etc/cvsup
ruo91# cp /usr/share/examples/cvsup/stable-supfile /etc/cvsup/
ruo91# cp /usr/share/examples/cvsup/ports-supfile /etc/cvsup/
설정화일이 있는 디렉토리에서 stable-supfile 과 ports-supfile을 사용상의 편의를 위해 다른곳으로 복사하는겁니다.
ruo91# vi /etc/cvsup/stable-supfile
*default host=cvsup.kr.FreeBSD.org #1
*default release=cvs tag=RELENG_7 <== 7-stable 버전 #2
ruo91# vi /etc/cvsup/ports-supfile
*default host=cvsup.kr.FreeBSD.org #1
*default release=cvs tag=. <== current 버전 #2
#1 은 cvsup 서버를 골라 적어줄 부분입니다. 우리나라에는 아래 서버에서 미러 합니다.
맘에 드는곳을 골라서 CHANGE_THIS 부분을 변경해 주시면 됩니다.
CVSup 미러
cvsup.kr.FreeBSD.org: KT IDC 100Mb Dedicated, 주기 1H, KFUG
cvsup2.kr.FreeBSD.org: KT IDC 100M Dedicated, 주기 1H, Holynet
cvsup3.kr.FreeBSD.org: KT IDC 100M Dedicated, 주기 1H, SarangNet
cvsup4.kr.FreeBSD.org: GNG IDC 100M Dedicated, 주기 1H
#2 는 원하는 FreeBSD 버젼을 적어줄 부분입니다. tag는 아래 사이트를 참고하시고,
tag= 다음에 원하는 버젼을 적어주시면 됩니다.
http://www.freebsd.org/doc/en_us.iso885 ··· ags.html
예) FreeBSD 5.2로 업그레이드는 - RELENG_5_2
FreeBSD 4-stable로 업그레이드는 - RELENG_4
FreeBSD Current로 업그레이드는 - .
cvsup을 실행하여 system 소스코드와 ports 소스코드를 최신의 소스로 업그레이드 하려면..
ruo91# /usr/local/bin/cvsup -L 2 /etc/cvsup/stable-supfile
ruo91# /usr/local/bin/cvsup -L 2 /etc/cvsup/ports-supfile
참고로 release와 stable, current의 차이점은..
release 는 테스트후 안정성이 보장이 되었다 생각되어 더 이상 소스코드를 업데이트 못하도록 CVS 소스 트리를 동결하고 하나의 새로운 버전을 내놓는 단계이다.
보통 CD나 ftp로 배포되는 것들이 모두 이 release에 속한다.
stable 은 버그나 보안적인 문제로 인해 수정이 되거나 새로운 기능이 추가된 안정적으로 개발되는 버전이다.(기본 골격을 유지하면서 안정성을 확보하는 버전)
current 는 새로운 방식을 시도하고, 연구하는 버전이다.(기본 골격에서 탈피하려고 하며, 안정성 보장이 어렵다.)















