How to install Apache Subversion on Linux

Subversion is a free/open source version control system (VCS). Being said, Subversion manages files and directories, and the changes made to them, over time. This allows you to recover older versions of your data or examine the history of how your data changed. In this regard, many people think of a version control system as a sort of “time machine“.

I’ll be using the IP address of for this example. Replace it with your own IP address or domain name.

1. Install Subversion:

apt-get install subversion

2. Create your first SVN repository. I’ll be using “repo” as an example and will put it on “/home”. Basically you can host it anywhere, except of course on system folders where it can cause undesired result such as in “/tmp”:

svnadmin create /home/repo

3. Edit the svnserve.conf to set some basic permissions. In this case, a user can read the contents and write to the file system of the repository only if he has the login credentials:

# use “none” or “read”
anon-access = none
# use “none” or “write”
auth-access = write
realm = My Repository
password-db = passwd

4. Edit the passwd file with your desired credentials. In this example, I’ll be setting user “admin” and password “admin”:

admin = admin

5. Start the subversion server:

svnserve -d -r /home/repo

You can now access your repository at svn://

Sources and Citations

Version Control with Subversion (for Subversion 1.6)
Hosting a Subversion Repository

Leave a Reply

Your email address will not be published. Required fields are marked *