Home > subversion > Upgrade subversion to version 1.7 on CentOS

Upgrade subversion to version 1.7 on CentOS

Hi, this time I wanted to upgrade subversion on my CentOS box. So this is what I did:

First of all, take backup of your existing repositories (Assuming that I have a repository named: code and it is configured on svn under /home/svn/repositories/code):

svnadmin dump /home/svn/repositories/code > /backups/svn/code.dump

Now lets kill our running svn server:

ps -fea | grep svnserver
ps -fea | grep svnserve | grep -v grep | awk '{print $2}' | xargs kill -9

Now that I have my backups ready and the server is stopped I can go ahead and uninstall current svn version and then build from source and install the latest version, with these steps:

svn --version #Lets check which version we have now

yum remove subversion

cd /usr/local/src/

wget http://apache.tradebit.com/pub/subversion/subversion-1.7.2.tar.gz #got this from http://subversion.apache.org/download/ on the recomended download section

tar zxf subversion-1.7.2.tar.gz # Make sure you use the same filename from the previous step

cd subversion-1.7.2

wget http://rahulsoni.me/files/apr-util-1.3.12.tar.gz

wget http://rahulsoni.me/files/apr-1.4.5.tar.gz

tar zxf apr-util-1.3.12.tar.gz

mv apr-util-1.3.12 apr-util # When using ./configure it will look for these files by default on a folder without version number

tar zxf apr-1.4.5.tar.gz

mv apr-1.4.5 apr # When using ./configure it will look for these files by default on a folder without version number


Now after my first try to get this working, it failed because of the sqlite version, so if you get this message after trying ./configure :

checking sqlite library version (via header)... unsupported SQLite version
checking sqlite library version (via pkg-config)... none or unsupported 3.3

An appropriate version of sqlite could not be found. We recommmend, but require at least 3.6.18.

Then you would need to install sqlite 3.7.X you can do it by installing atomic repository and updating using yum:

sqlite3 -version #check current version

wget -q -O - http://www.atomicorp.com/installers/atomic | sh # To install Atomic repository

yum --enablerepo=atomic upgrade sqlite

sqlite3 -version #you should get the 3.7 version listed now

Now that we have the updated sqlite, lets continue with the subversion install:



make install

svn --version # Now you should see the latest version

Now, go to all of your local working directories and do a svn upgrade:

cd /application/code

svn upgrade

And Thats it!! You now have the 1.7 svn working version.

Categories: subversion Tags: , ,
  1. JS
    September 6, 2012 at 3:51 pm

    Thanks, worked. Two notes, BerkelyDB warning at the end, however I didn’t need it. The SQLLite packages have moved and I followed the instructions that ./configure generated about getting SQLLite and moving the .c library it suggested rather than following your SQLLite related steps – they didn’t work.

  2. dpm
    November 23, 2012 at 2:31 am

    svn version 1.7.7 – ./configure generated sqlite version not found,
    did the following
    $ wget http://www.sqlite.org/sqlite-amalgamation-3071300.zip
    $ unzip sqlite-amalgamation-3071300.zip
    $ mv sqlite-amalgamation-3071300 subversion-1.7.7/sqlite-amalgamation

    ./configure complained about missing zlib.h file
    wget http://zlib.net/zlib-1.2.6.tar.gz #version may have changed, check site
    tar xvf zlib-1.2.7.tar.gz
    mv zlib-1.2.7 zlib
    cd zlib
    ./configure –shared
    make install
    cd ..
    ./configure CPPFLAGS=”-Izlib/ -Lzlib/”

    make install
    svn -version

    # svn –version
    svn, version 1.7.7 (r1393599)

    –hope that helps for someone..

  3. atomic
    July 23, 2013 at 6:00 am

    Why not simply calling ./get-deps.sh after unpacking subversion? It downloads all dependencies automatically…

  4. jacomoman
    December 28, 2013 at 3:18 am

    I know this is from a while back, but just in case someone else is looking to do this, a much simpler way is to get the already built RPM from wandisco.com:


    I’m on CentOS 5.9 and didn’t need to upgrade my Sqlite3 version either. Upgraded my SVN server from 1.6.x to 1.7.14 and it worked like a charm.

    Hope this helped someone.


  1. February 23, 2012 at 5:32 am
  2. December 30, 2013 at 11:01 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: