Cheapest Webhosting in India

How to install SVN or Subversion on Linux Server.

Subversion, or SVN, is a mechanism by which developers can keep track of changes to their code and distribute these changes to the public in real time.

Quick Steps to Install SVN.

You’ll need the following build tools to compile subversion:

  • autoconf 2.59 or later (unix only)
  • libtool 1.4 or later (unix only)
  • a reasonable C compiler (gcc, visual studio, etc.)

Building A Subversion Server

  • Setting up Apache
  • Making and Installing the Subversion Server
  • Configuring Apache for Subversion
  • Running and Testing
  • Alternative: ’svnserve’ and ra_svn

Download SVN.

wget http://subversion.tigris.org/downloads/subversion-1.6.12.tar.bz2
wget http://subversion.tigris.org/downloads/subversion-deps-1.6.12.tar.bz2
wget http://www.sqlite.org/sqlite-3.5.2.tar.gz

(Subversion uses SQLite to manage some internal databases.)

tar xzvf subversion-1.4.5.tar.bz2
tar xzvf subversion-deps-1.6.12tar.bz2
tar xzvf sqlite-3.5.2.tar.gz

cd sqlite-3.5.2
./configure
make
make install
./sqlite3
.help
.exit
cd ..

cd subversion-1.4.5
./configure
make
make install
svn –version

Cheeerssss :)

Hello Folks,

There are two ways to delete .svn file from repository one is to delete .svn directories that have been left by subversion.

find ./ -name “.svn” | xargs rm -Rf

(obviously you will want to keep the .svn folders if you are still using subversion)

Linux:

Cleaning a svn folder:
find . -name .svn -exec rm -rf {} \;

Windows:

Save the following to the folder to clean to a filename with a .cmd extension (cleansvn.cmd). After that issue the command, eg., C:\www>cleansvn

for /f “tokens=* delims=” %%i in (‘dir /s /b /a:d *svn’) do ( rd /s /q “%%i” )

Cheeersss.