<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>how to install svn in linux step by step Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/how-to-install-svn-in-linux-step-by-step/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/how-to-install-svn-in-linux-step-by-step/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:53:55 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>How to install subversion on Linux?</title>
		<link>https://www.scmgalaxy.com/tutorials/how-to-install-subversion-on-linux/</link>
					<comments>https://www.scmgalaxy.com/tutorials/how-to-install-subversion-on-linux/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sun, 27 Jun 2010 04:39:49 +0000</pubDate>
				<category><![CDATA[SVN(Subversion)]]></category>
		<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[how to install svn in linux step by step]]></category>
		<category><![CDATA[How to install SVN on Linux]]></category>
		<category><![CDATA[Install]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Subversion Installation in Linux Guide]]></category>
		<category><![CDATA[Subversion Installation in Linux Instructions]]></category>
		<category><![CDATA[Subversion Installation in Linux References]]></category>
		<category><![CDATA[Subversion Installation in Linux Tutorial]]></category>
		<category><![CDATA[Subversion Installation Process in Linux]]></category>
		<category><![CDATA[SVN]]></category>
		<category><![CDATA[SVN COnfiguration]]></category>
		<category><![CDATA[SVN Installation in Linux Guide]]></category>
		<category><![CDATA[SVN Setup in Linux]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2010/06/27/how-to-install-subversion-on-linux/</guid>

					<description><![CDATA[<p>To install svn in linux and make it fully working , I found it really tough and it has taken [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-install-subversion-on-linux/">How to install subversion on Linux?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-4429 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/subversion-on-linux-install.png" alt="subversion-on-linux-installation-process" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/subversion-on-linux-install.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2010/06/subversion-on-linux-install-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></p>
<p>To install svn in linux and make it fully working , I found it really tough and it has taken my lots of time. I am thankful to Sanjay, who helped me in this and without him it won’t be possible.While installing this you will miss a small thing and you got stuck.But this is not at all tough like open source it’s really very easy.</p>
<p>Why I have choosed this topic to write is that, those who are using it first time will need some time to get full of subversion.</p>
<p>Now the latest version of svn is 1.6.9.</p>
<p><strong>To install svn first you need svn tar file. Which can be downloaded easily from here or you can run these commands (depending on your required version).</strong></p>
<p>wget http://subversion.tigris.org/downloads/subversion-1.6.9.tar.gz</p>
<p>wget http://subversion.tigris.org/downloads/subversion_deps-1.6.9.tar.gz (It contains the library required by svn)</p>
<p>This you can download any where, Here I am creating a folder svn inside /usr/local directory.(/usr/local/softwares/svn/).(So it will be easy for me to specify paths and you to understand).</p>
<p><strong>To start the installation process first untar this two file.</strong></p>
<p>tar -xvzf subversion-1.6.9.tar.gz</p>
<p>tar -xvzf subversion_deps-1.6.9.tar.gz (After untar you won’t find any particular folder named subversion_deps-1.6.9. Don’t worry for that it is keeping all the libraries files inside subversion-1.6.9)</p>
<p><strong>Now have to configure it, but before that we have to check whether our system is having all the dependies or not, like APR(Apache Portable Runtime) and APR utility.</strong></p>
<p>If it’s not there then we can get it from here,</p>
<p>apr-1.2.12.tar.gz</p>
<p>apr-util-1.2.12.tar.gz</p>
<p><strong>once downloaded you can start configuring it.</strong></p>
<p>tar -xvzf apr-1.2.12.tar.gz</p>
<p>cd apr-1.2.12</p>
<p>./buildconf</p>
<p>./configure</p>
<p>make</p>
<p><strong>The apr util directory requires apr directory, so we need to specify path for that.</strong></p>
<p>tar -xvzf apr-util-1.2.12.tar.gz</p>
<p>cd apr-util-1.2.12</p>
<p>./buildconf –with-apr=/path to apr directory (/usr/local/sofwares/svn/apr-1.2.12)</p>
<p>./configure –with-apr=/path to apr directory (/usr/local/sofwares/svn/apr-1.2.12)</p>
<p>make</p>
<p>The other directories we have to check before installation are,</p>
<p>autoconf 2.50 or newer (autoconf –version)</p>
<p>libtool 1.4 or newer (this you can find inside subversion-1.6.9 folder)</p>
<p>Neon Library 0.25.x or 0.26.x (inside subversion-1.6.9 folder)</p>
<p>Berkely DataBase (If it’s not there you have to install it.)</p>
<p>Download the file, db-4.6.21.tar.gz .</p>
<p>Apache web server greater then 2.0.49 (httpd -version)</p>
<p>zlib (inside subversion-1.6.9 folder)</p>
<p>After checking all this, we can start installation process,</p>
<p>cd subversion-1.6.9</p>
<p>./autogen.sh</p>
<p>./configure –with-berkelay-db=/usr/local/softwares/svn/db-4.6.21 (path of berkelay data base)</p>
<p>make</p>
<p>make install</p>
<p>Once we have finished that we need to map svn with apache.</p>
<p>Before that we have to check whether mod_dav_svn and mod_authz_svn modules are present or not,if not then install it.</p>
<p>yum install mod_dav_svn</p>
<p>and add this in /etc/httpd/conf/httpd.conf file</p>
<p>LoadModule dav_svn_module modules/mod_dav_svn.so</p>
<p>LoadModule authz_svn_module modules/mod_authz_svn.so</p>
<p>Make sure you will add these lines after LoadModule dav_module modules/mod_dav.so.</p>
<p>Now create one repository with svnadmin command.Run this command inside your subversion folder.</p>
<p>svnadmin create repos</p>
<p>after that you can check with,</p>
<p>ls repos</p>
<p>conf dav db format hooks locks README.txt</p>
<p>This full path you have to specify in SVNPath.</p>
<p>Then at the end of the httpd.conf file you have to add</p>
<p>#for svn path</p>
<p>DAV svn</p>
<p>SVNPath /usr/local/softwares/svn/subversion-1.6.9/repos</p>
<p>now restart ur apache.</p>
<p><strong>For security purpose to give authentication to the user we have to create authentication file with the command,</strong></p>
<p>htpasswd -cm /etc/svn-auth-file user_name (test)</p>
<p>New password : test123</p>
<p>Re-Type passwd : test123</p>
<p>And to specify which access you want to give the user, create svn-access-file inside /etc.</p>
<p>Inside this file add code as,</p>
<p>[/]</p>
<p>* = rw</p>
<p>This will give authentication to every user specified in Require user inside location.</p>
<p><strong>You can specify this inside httpd.conf file as,</strong></p>
<p>DAV svn</p>
<p>SVNPath /usr/local/softwares/svn/subversion-1.6.9/repos</p>
<p>AuthzSVNAccessFile /etc/svn-access-file</p>
<p>AuthType Basic</p>
<p>AuthName “Subversion repository”</p>
<p>AuthUserFile /etc/svn-auth-file</p>
<p>Require user user_name</p>
<p><strong> </strong></p>
<p><strong>Now you are ready to import files in the repository, with the following command.</strong></p>
<p>svn import -m “Initial import.” path(from where you want to import file) file:///usr/local/softwares/svn/subversion-1.6.9/repos/(repository path)</p>
<p>after running this command don’t worry it is not goin to display any thing inside repos folder. To check that you can run it in the browser.</p>
<p>http://localhost(you have to give your domain name)/svn/repos</p>
<p>Now you are ready to checkout the files with any svn client. For linux user smartsvn is best.</p>
<p>After doin this you can start ur smartsvn client and can follow these steps,</p>
<p>check out project from repository -&gt; manage -&gt; add -&gt; enter svn url</p>
<p>enter ur url here http://localhost/svn/repos</p>
<p>enter -&gt;ok</p>
<p>server name and repository path it will take automatically. click next, choose user radio button and give user name and password.</p>
<p>follow the steps to fetch the files.</p>
<p><strong> </strong></p>
<p><strong>To install smartsvn, first get the smartsvn tar file.</strong></p>
<p>untar the file, with the command</p>
<p>tar -xvzf smartsvn-version.gz</p>
<p>for smartsvn first check the correct version of java is available or not, with</p>
<p>java -version command.If it is coming like this then you can proceed.</p>
<p>java version “1.5.0_14?</p>
<p>Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_14-b03)</p>
<p>Java HotSpot(TM) Server VM (build 1.5.0_14-b03, mixed mode)</p>
<p>Sometimes java will be installed but not the JRE. In that case simply re-install java.</p>
<p>Can install the latest version of java with rpm bin file.</p>
<p>jdk-1_5_0_14-linux-i586-rpm.bin</p>
<p>./jdk-1_5_0_14-linux-i586-rpm.bin</p>
<p>go through the license and say yes.</p>
<p>It will installed in /usr/java/</p>
<p>Now have to make chnages in .bash_profile file.</p>
<p>cd /root</p>
<p>vi .bash_profile</p>
<p>give JAVA_HOME path.</p>
<p>JAVA_HOME = /usr/java/jdk1.5.0_14</p>
<p><strong>Then compile it with the command,</strong></p>
<p>source .bash_profile</p>
<p>then again check with java version.</p>
<p>Now you are ready to utilise the full feature of subversion</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/how-to-install-subversion-on-linux/">How to install subversion on Linux?</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/how-to-install-subversion-on-linux/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
