Howto Installing FreeBSD 9 source

Howto Installing FreeBSD 9 source

1. Download the tar file that matches the version you installed.
i386: ftp://ftp.freebsd.org/pub/FreeBSD/releases/i386/9.0-RELEASE/src.txz
amd64: ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/9.0-RELEASE/src.txz

Unpack the archive to /usr/src:
# tar -C / -xvzf src.txz

Be aware that this will only get you the code for FreeBSD-9.0-RELEASE, not anything that has been added since then.

2. svn(1)
SVN (Subversion) is a newer source control system. It is not part of the base system, so install devel/subversion. Then check out the source:
# svn checkout svn://svn.freebsd.org/base/releng/9.0/ /usr/src
Other versions will have different URLs, like svn://svn.freebsd.org/base/stable/9/ for 9-STABLE. svn includes a larger history and can take up to twice the amount of disk space as a CVS checkout.

See the Handbook SVN mirror list for alternate servers which may be faster for you.

廣告

發表迴響

在下方填入你的資料或按右方圖示以社群網站登入:

WordPress.com Logo

您的留言將使用 WordPress.com 帳號。 登出 / 變更 )

Twitter picture

您的留言將使用 Twitter 帳號。 登出 / 變更 )

Facebook照片

您的留言將使用 Facebook 帳號。 登出 / 變更 )

Google+ photo

您的留言將使用 Google+ 帳號。 登出 / 變更 )

連結到 %s