[출처] http://rhyous.com/2009/12/25/how-to-download-freebsd-current-or-freebsd-stable-using-svn/
How to download FreeBSD-Current or FreeBSD-Stable usingsvn?
How to download FreeBSD-Current or FreeBSD-STABLE using svn?
The goal of this article is to help users who want to get started developing on FreeBSD and want to contribute code fixes/changes/enhancements to FreeBSD. I really try to be “newbie” proof, so even a newbie can do this, so if you think I am stating the obvious, then skip what you already know.
The first thing you need to do in order to work on FreeBSD code is to download the FreeBSD code itself.
Step 1 – You need a FreeBSD install
Following one of these d0cuments:
How do I install FreeBSD?
or if you want a FreeBSD install with a desktop as well:
How to install and configure a FreeBSD 8 Desktop with Xorg and KDE?
Step 2 – Make sure that the FreeBSD version of Subversion is installed
If you built a FreeBSD 8 Desktop as described above, you probably already have Subversion installed but it is the wrong version. You should install the subversion-freebsd port as described on the wiki:
http://wiki.freebsd.org/SubversionPrimer#head-d0af2380587f2e6b75285c1aa2db931b23698ab7
- Check if subversion is installed with this command:
$ pkg_info |grep subversion - If subversion (not subversion-freebsd) is installed, uninstall it.
#
#cd /usr/ports/devel/subversion
make deinstall - If it is not installed, install it.
By package:
# pkg_add -r subversion-freebsd By port:
#
#cd /usr/ports/devel/subversion-freebsd
make install
Step 3 - Choose/Create a location to store the source
While you could download to /usr/src where source is usually installed, you may want to maintain multiple versions of code, such as head, stable/8, and stable/7 or even more. So lets create a folder other than source for all of these.
- Access a shell (also called a command prompt or terminal).
- Create a directory that is in a partition that has plenty of space. I have all my space in /usr (where my home directory /usr/home/jared resides) and other partitions are small so I am going to create a folder in my home directory.
- Make a directory to store your source. I am just calling my directory Devel, but you can name yours whatever you would like.
$ mkdir Devel - Now change to your new directory.
$ cd Devel
You are now read to use svn to check out the source.
Step 4 - List or browse the repository so you know what to checkout
- List what is in the svn base.
$ svn list svn://svn.freebsd.org/base - Now list what is in head.
$ svn list svn://svn.freebsd.org/base/head - Now list what is in stable.
$ svn list svn://svn.freebsd.org/base/stable
You should now have a good idea of how to browse the svn repository from the command line and determine what to download.
Step 5 - Obtaining source for FreeBSD-Current (which could become FreeBSD 9
- To download head or FreeBSD-Current, run the following command.
$ svn checkout svn://svn.freebsd.org/base/head - Wait for your source to download.
Yes, it was that easy if you can believe it.
You will have the following directory containing source for head: /usr/home/jared/Devel/head
Step 6 - Obtaining source for FreeBSD-STABLE
- To download stable or FreeBSD-STABLE, run the following command.
$ svn checkout svn://svn.freebsd.org/base/stable/8 - Wait for your source to download.
You will have the following directory containing source for head: /usr/home/jared/Devel/8
Step 7 - Updating /usr/src using subversion-freebsd
- To update /usr/src you need root access, so su to root.
- To download head or FreeBSD-Current, run the following command.
# svn checkout svn://svn.freebsd.org/base/head /usr/src - Wait for your source to download.
Copyright ?? Rhyous.com - Linking to this article is allowed without permission and as many as ten lines of this article can be used along with this link. Any other use of this article is allowed only by permission of Rhyous.com.
'기본 카테고리' 카테고리의 다른 글
android 기존 프로젝트에 activity(액티비티) 추가하기 (0) | 2010.09.16 |
---|---|
스타벅스에서 안드로이드 프로그래밍... (0) | 2010.09.16 |
가상 리눅스 (0) | 2010.09.11 |
QEMU로 시스템 에뮬레이션하기 (0) | 2010.09.11 |
안드로이드 포팅 (0) | 2010.09.05 |