CVS or Subversion.

" />
x
Loading
 Loading
Hello, Guest | Login | Register

Downloading Source Trees 101

Discover how to check out the latest development tree of your favorite projects using CVS or Subversion.

If you’ve been using open source for a good length of time, you’ve probably needed a feature or bug fix that’s only available in the development tree of a open source project. For example, if you want to use PostgreSQL with RTG, you have to download and build the developers’ latest code. (Those exact instructions can be found in the March 2005 “Tech Support” column, located online at http://www.linux-mag.com/2005-03/tech_01.html/.)

Unlike stable releases, which are usually conveniently available for download as either source tarballs or binary packages, development code is often only available from a project’s source code repository. Typically, a repository is either a CVS (http://www.nongnu.org/cvs/) or Subversion (SVN, http://subversion.tigris.org/) repository.

Here, let’s see how to use CVS and SVN to access the development tree of a few notable projects.

To try CVS, let’s download the latest version of RTG and the most recent version of Mozilla Firefox. Both examples use an anonymous CVS account, which means that you can check out any code you want to, but cannot commit any changes.

First, let’s check out the latest version of RTG. To do that, type:

$ cvs –d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/rtg login
$ cvs –z3 –d:pserver:anonymous@cvs.sourceforge.net:/cvsroot/rtg co –P rtg

When prompted for a password, just hit Enter. The –z3 parameter causes files to be compressed while in transit. (While –z3 is usually optimal, –z9 offers a logarithmic improvement in compression at an exponential cost in CPU time.)

As you can see, RTG is hosted on…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. Helpful Tools for Software Developers
  2. The Github Hall of Fame
  3. Book'em, Github.
  4. This Week on Github: Stupid Ruby Tricks
  5. A Veritable Scatter Shot!
Follow Linux Magazine
Rackspace