How to download FreeBSD-Current or FreeBSD-Stable using svn?

Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated.

How to download FreeBSD-Current or FreeBSD-Stable using svn?

Postby rhyous » 27 Dec 2009, 02:19

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.

Read more here...

I didn't see any "How to" on this subject here, so I wrote this one, even though it is simple, I thought it was needed because I had always used cvs and not svn.

Feel free to give me feed back, report typos, or errors, etc...
The only thing you take with you when you die is your knowledge. Never stop acquiring it.
User avatar
Posts: 137
Joined: 08 Apr 2009, 04:32
Location: West Jordan, Utah

Postby Alt » 27 Dec 2009, 09:13

Tnx =)
User avatar
Posts: 726
Joined: 18 Nov 2008, 12:22
Location: Mother Russia

Postby phoenix » 27 Dec 2009, 19:48

Didn't know about "svn list", that's handy, thanks.

A note for those who want to play with multiple source trees:

When compiling the world, /usr/obj/ includes the name of the source tree, so if you have /usr/src-7, /usr/src-8, /usr/src-7.2 and so on, you can use a single /usr/obj. You'll get paths like /usr/obj/usr/src-7/ and /usr/obj/usr/src-8, and so on. Quite handy if you want to play. :)

To "update" your source tree between versions, use svn switch. For example, if you initially did [cmd=#]svn co svn://[/cmd] but want to do a source upgrade to 8.0, then use [cmd=#]svn switch svn://[/cmd]

The nice thing about using svn, is that you can follow the -CURRENT, -STABLE, or security trees with ease, as a "source tree update" is a simple svn update in the source directory.

Help for FreeBSD: Handbook, FAQ, man pages, mailing lists.
User avatar
Posts: 3349
Joined: 17 Nov 2008, 05:43
Location: Kamloops, BC, Canada

Return to Howtos & FAQs (Moderated)

Who is online

Users browsing this forum: No registered users and 1 guest