Professional Documents
Culture Documents
04 LTS
Subversion is an open source version control system. It helps you keep track of a collection of files and
folders. Any time you change, add or delete a file or folder that you manage with Subversion, you
commit these changes to your Subversion repository, which creates a new revision in your repository
reflecting these changes. You can always go back, look at and get the contents of previous revisions.
This article will help you for step by step setup of Subversion (svn) server on Ubuntu 16.04 & 14.04
LTS systems.
1. Install Apache
First you need to install Apache web server to access svn server using http urls. Skip this step if you
already have Apache web server on your system.
2. Install Subversion
Use following command to install subversion packages and there dependencies. Also install svn
module for Apache libapache2-mod-svn packages on your system..
AuthType Basic
AuthName "Subversion Repository"
AuthUserFile /etc/apache2/dav_svn.passwd
</Location>
4. Create First SVN Repository
Use following commands to create your first svn repository with name myrepo.
Now create first svn user in /etc/apache2/dav_svn.passwd file. These users will use for
authentication of svn repositories for checkout, commit processes.
Use http urls to access your repository in browser. It will prompt for authentication. Use login
credentials created in Step 5. Change example.com with your system host name, domain name or ip
address.
http://example.com/svn/myrepo/