Setting up an svn server in centos. Type yum install subversion in the terminal and the installation is done
Type subversion -v to determine whether the installation succeeded, and the following prompt appears -bash: subversion: command not found
To find out, type svnserve –version and the prompt appears svnserve, version 1.6.11 (r934486) compiled Feb 10 2015, 22:08:22 Copyright (C) 2000-2009 CollabNet. Subversion is open source software, see the http://subversion.tigris.org/ site. This product includes software developed by CollabNet(http://www.Collab.Net/).
The following repository back-end (FS) modules are available: fs_base : the module can only operate on BDB repositories. fs_fs : the module works with text file (FSFS) repositories. Cyrus SASL authentication is available.
Now that we have the svn software, we still need to create an svn repository
Command mkdir /opt/svn/repos svnadmin create /opt/svn/repos
After execution, multiple files are generated under repos
Next let’s configure it. Enter the configuration file passwd cd /opt/svn/repos/conf
Edit passwd vi passwd
Create the username and password under [users] 
Created successfully, save and exit. Set permissions vi authz 
Finally, configure svnserve.conf
anon-access = none # makes unauthorized users unable to access
auth-access = write # gives authorized users write permission
password-db = password authz-db = authz # access control file
realm = /opt/svn/repos # authentication namespace; subversion displays it in the authentication prompt and uses it as the keyword for credential caching
Connect, and start with svnserve -d -r /opt/svn/repos or svnserve -d -r /opt/svn/repos —listen-port 3391

