Note: This is the second time I’m writing this entry since RZ somehow managed to lose my first post. So these steps are from memory and might not be 100% correct.
If you want to install subversion, you will need to have apache. Easiest way to install this is via yum (or whatever package manager you need to use).
yum install subversion mod_dav_svn httpd
Once complete, you should have a directory in /etc/httpd/conf.d/subversion.conf
.
We will create the repos in /home/subversion. I’ll also make a user ‘subversion’ who can manage these files without root. As root, run the following commands:
To create a new repo:
To create the initial import of the trunk:
You may want to add users to access this repo. Suppose you want to add user:
Note: do not use the -c
argument after adding the first user, otherwise it will overwrite the existing password file.
You will then need to add an entry to /etc/httpd/conf.d/subversion.conf
with the following:
Ensure the files in /home/subversion/ are owned by apache, but still is group owned by subversion.
You should now be able to access your new repo by going to /svn/repo after using the username/password combination given to htpasswd above.