
SVN SERVER SETUP
Step to setting subversion server for administrator:-
1. Check to see if subversion is installed:-
# rpm -q subversion
subversion-1.4.4-1.fc7
or
#svn –version
svn, version 1.5.2 (r32768)
compiled Oct 4 2008, 02:48:59
If you see “package subversion not installed” you will need to install subversion before
proceeding. Otherwise you should see something similar to “ subversion-1.4.4-1.fc7”
2. Login in as root:-
3. Create a directory to hold all your repositories:-
#mkdir /home/svnserver/svn
4. Create a repository. In this example we will create a repository called “repositories”:-
# svnadmin create /home/svnserver/svn
5. list the repository files and directory :-
#ls
conf db format hooks locks README.txt
6. Create a SVN user
6.1 vi /home/svnserver/svn/conf/svnserve.conf
In that file add these three lines:
anon-access=write
auth-access=write
password-db=passwd
Note:- Do not leave space before this three lines.
6.2 Create a password file.
vi /home/svnserver/svn/conf/passwd
In that file add a line for your user:
# add users in the format : user = password
user = mypassword
7. Create a directory to hold all your project in repositories:-
# mkdir /home/svnserver/svn/myproject
8. Try importing source code into the repository. Change to a directory containing the files you want to
check in.
# svn -m “Intailly importing” import /home/svnproject/source/myproject file:///home/svnserver/svn/myproject
9. Start the SVN Server as Daemon:-
#svnserve -d
10. Try checking it out of the repository:- (Check out)
home/user/source# svn co svn://192.168.0.103/home/svnserver/svn/myproject
11. Try checking it in of the repository:- ( Check in)
#svn ci -m “log message” /home/user/source/myproject/
- Use of runtime variables to save into another variable using register in Ansible - September 6, 2018
- Ansible & Ansible Tower Variable Precedence Hierarchy - September 6, 2018
- How to use template in Ansible? - September 6, 2018
This tutorial on setting up an SVN server is a practical and valuable guide for developers and teams looking to manage version control with Subversion. Although newer systems like Git are widely used today, SVN remains important in many enterprise environments due to its simplicity and centralized model. Learning to install and configure an SVN server — including repository creation, access control, and basic operations — helps ensure that teams can maintain structured version histories, manage code collaboration effectively, and support legacy projects. This hands‑on walkthrough not only strengthens foundational version control skills but also reinforces best practices for repository organization and security in real‑world development settings.