Installation and Configuration of an SVN Repository
Introduction
If you want to use Subversion, the successor of CVS, you first need to install Apache 2.
Installation
Here are the packages to install:
|
|
Configuration of SVN
Configuration of the module
Edit the “dav_svn” module:
|
|
Then adapt this configuration for your needs (/etc/apache2/mods-enabled/dav_svn.conf
):
|
|
Apache Configuration
Add this to your “VirtualHost” in Apache configuration (/etc/apache2/site-enabled/default
):
|
|
Access Definition
Next, we will create a file containing users authorized to connect:
|
|
Setting up the repository
- Creating a repo (repository):
|
|
- Importing a project:
|
|
If everything went well, you should see this:
Committed revision 1.
- Verification:
|
|
Starting the daemon
To start the daemon:
|
|
Set a listening port. 3690 is the default SVN port.
- Log status:
|
|
Usage
A repository within another repository
If, for example, you want to have a repository, then a folder inside it pointing to another repository, it’s possible by going to the folder that will contain the other repositories, then running this command:
|
|
Then, enter the name of the folder you want and the SVN address:
lib svn://svnsrv/trunk/library
- lib: the folder containing this SVN repository
- svn://: the SVN address
Here’s another example:
Nagios http://svn/admin/Production/Nagios
You can then save this configuration to make it permanent by doing a commit.
References
Setting up an SVN repo
Apache Subversion Documentation
SVN and auto updatable working copy Documentation
Subversion and Trac as Virtual-Hosts documentation
Last updated 06 Jul 2012, 14:40 CEST.