From LQWiki
Jump to: navigation, search

Subversion, aka "svn", is a version control program and is supposed to be the successor to and modern replacement of CVS. The svn client helps you to download ("checkout") files from an svn server. This article describes as well how to set up the client as the server.

The client


To install subversion, download it from its project homepage, unpack it and compile it. If you want to check out from an https address (svn co you need the neon development package installed at compile-time.


If you want to work through a proxy server, you will need to edit .subversion/servers in your home directory. Depending on your network environment you will need some lines like these in the file:

# http-proxy-exceptions = *,
http-proxy-host = proxy
http-proxy-port = 8080
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword


svn is the command to call Subversion.


svn co svn://

gets you the latest development code of KDE's libraries. It works through svn's default port 3690 and will not function if you are behind a proxy server.

The server

To set up a subversion server, install the client as described above. Then

useradd -m svn
groupadd svn

Find out where subversion expects its repository

/etc/init.d/svnserve start
Starting svnserve svnserve: Root path '/srv/svn/repos' does not exist or is not a directory.

Create the respective directory

svnadmin create /srv/svn/repos

Start the subversion server

/etc/init.d/svnserve start

See also

External links