Subversion: How do you install and set up Subversion for revision control?

Code revision control is very crucial part of development.  It ensures you know who has changed which files and you are able to rollback to older versions in case new changes are breaking your website page or entire project.  There are few options for you if you are looking into setting up code revision control.  My preferred option is Subversion.  Subversion is an open-source revision control system which is becoming more and more popular every day.  It is very easy to install and setup your project under Subversion.  If you want detailed instructions, please see the Subversion Book.  They do a great job explaining what revision control is, what are the different types of revision control are out there, detailed instructions on installing subversion, doing administrator tasks, etc.  Here are instructions on how to set up Subversion under CentOS.  Same instructions apply to most linux distributions. 

YUM Install 

Easiest way to install subversion is via “yum” by typing:

yum install subversion

Once install is done, confirm it by typing “svn” at the prompt and you should get:

Type 'svn help' for usage.

At this point you can skip to “Setting up Subversion repository” part.

SOURCE Install

Obtain source from:  Subversion.  At the time of writing, latest (1.4.3) version can be obtain from this link:  http://subversion.tigris.org/downloads/subversion-1.4.3.tar.gz

tar zxf subversion*
cd subversion*
./configure
make && make install

after everything goes well, type svn at the prompt and you should get:

Type 'svn help' for usage.

Setting up Subversion repository

adduser svnusers
mkdir repos/branches -p
mkdir repos/trunk -p
mkdir repos/tags -p
mkdir /svn
svnadmin create /svn/demorepo
svn import --message "Initial set up" repos file:///svn/demorepo
cd /svn/demorepo
chown .svnusers . -R
chmod 775 * -R
chmod +s db

Thats all there is to it to setup Subversion repository.  At this point, you should add any users you want to have access to the repository by adding them to “svnusers” group.

————————————-
DISCLAIMER: Please be smart and use code found on internet carefully. Make backups often. And yeah.. last but not least.. I am not responsible for any damage caused by this posting. Use at your own risk.

6 thoughts on “Subversion: How do you install and set up Subversion for revision control?

  1. Pingback: Subversion (SVN): How do you set up backup for your Subversion reposiotries? | Technology: Learn and Share

  2. kd 10

    I and also my pals have already been checking the nice points from the blog while before long I had a terrible feeling I never expressed respect to the web site owner for those strategies. Most of the women appeared to be consequently passionate to read all of them and have now in fact been taking advantage of those things. Thank you for being quite kind and then for finding these kinds of smart resources millions of individuals are really desperate to understand about. Our sincere regret for not expressing gratitude to sooner.

  3. ferragamo belt

    Thanks so much for giving everyone remarkably wonderful possiblity to discover important secrets from here. It is often so enjoyable and as well , jam-packed with a great time for me and my office friends to search your site nearly three times in one week to see the newest guides you have got. And of course, I am just certainly astounded with your superb concepts served by you. Certain 1 ideas in this article are honestly the best we have all had.

  4. dior glasses

    Thank you a lot for giving everyone a very wonderful possiblity to discover important secrets from this web site. It’s always very sweet and also stuffed with fun for me personally and my office fellow workers to visit your blog nearly 3 times weekly to learn the new tips you will have. And of course, I’m at all times astounded considering the astounding solutions served by you. Selected 2 tips in this post are honestly the most impressive we have all had.

Leave a Reply

Your email address will not be published. Required fields are marked *