CINXE.COM
Apache Subversion Source Code
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta http-equiv="x-ua-compatible" content="ie=edge"> <title>Apache Subversion Source Code</title> <meta http-equiv="Content-Type" content="text/html;charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <link rel="manifest" href="/site.webmanifest"> <link rel="apple-touch-icon" href="/icon.png"> <link rel="icon" type="image/png" href="/icon.png"> <link rel="stylesheet" href="/style/site.css" type="text/css" media="all"> <meta name="theme-color" content="#98b0d4"> </head> <body> <div id="site-banner"> <div style="font-style: italic; text-align: center;" id="site-banner-apachelogo"> <a href="https://www.apache.org/" ><img src="/images/asf_logo_wide.svg" alt="Apache Software Foundation" /></a> </div> <a href="/"> <img src="/images/svn-name-banner.svg" width="379" height="80" alt="[S] Subversion" id="site-banner-svnlogo" /></a> </div> <!-- #site-banner --> <div id="site-nav"> <label for="hamburger">☰</label> <input type="checkbox" id="hamburger"/> <nav id="site-nav-menu"> <p>About Subversion <ul> <li><a href="/news.html">News</a></li> <li><a href="/features.html">Features</a></li> <li><a href="/docs/">Documentation</a></li> <li><a href="/faq.html">FAQ</a></li> <li><a href="/roadmap.html">Roadmap</a></li> <li><a href="/security/">Security</a></li> <li><a href="/quick-start">Quick Start</a></li> <li><a href="/blog/">Blog</a></li> </ul> </p> <p>Getting Subversion <ul> <li><a href="/packages.html">Binary Packages</a></li> <li><a href="/download.cgi">Source Download</a></li> <li><a href="/docs/release-notes/">Release Notes</a></li> </ul> </p> <p>Community <ul> <li><a href="/mailing-lists.html">Mailing Lists</a></li> <li><a href="/reporting-issues.html">Reporting Issues</a></li> <li><a href="https://cwiki.apache.org/confluence/display/SVN/">Wiki</a></li> <li><a href="/contributing.html">Getting Involved</a></li> <li><a href="/source-code.html">Source Code</a></li> </ul> </p> <p>About the <acronym title="Apache Software Foundation">ASF</acronym> <ul> <li><a class="linkaway" href="https://www.apache.org/licenses/">License</a></li> <li><a class="linkaway" href="https://www.apache.org/foundation/sponsorship.html">Donate</a></li> <li><a class="linkaway" href="https://www.apache.org/foundation/thanks.html">Thanks</a></li> </ul> </p> <p id="site-search"> <form action="https://www.google.com/search" method="get" style="margin-top: 10px; margin-bottom: 10px; display: inline;"> <div style="display: inline;"> <input value="subversion.apache.org" name="sitesearch" type="hidden" /> <input name="q" id="query" type="text" placeholder="Search..." style="width: 10em" /> <input name="Search" value="Go" type="submit"/> </div> </form> </p> <!-- #site-search --> <p id="site-apachecon-block"> <p><a href="https://www.apache.org/events/current-event.html" ><img src="https://www.apache.org/events/current-event-125x125.png" alt="ApacheCon" /></a></p> </p> <!-- #site-apachecon-block --> <p id="site-svnbook-block"> <p>Read the official Subversion documentation <a href="https://svnbook.red-bean.com/" class="linkaway nopadding">online</a>!</p> <p><a href="https://svnbook.red-bean.com/" ><img src="/images/svnbook-cover.jpg" alt="Version Control With Subversion"/></a></p> </p> <!-- #site-svnbook-block --> <p id="copyright"> <p>Copyright © 2023 <a href="https://www.apache.org/" class="nopadding">The Apache Software Foundation</a>, Licensed under the <a href="https://www.apache.org/licenses/LICENSE-2.0" class="nopadding">Apache License, Version 2.0</a>. Apache, Apache Subversion, and the Apache feather logo are trademarks of The Apache Software Foundation. Subversion and the Apache Subversion logo are registered trademarks of The Apache Software Foundation.</p> <p><a href="https://privacy.apache.org/policies/privacy-policy-public.html" class="nopadding">Privacy policy</a></p> </p> <!-- #copyright --> </nav> </div> <!-- #site-nav --> <div id="site-content"> <div id="site-notice"> <!-- PUT SITE-WIDE NOTICES HERE AS NECESSARY --> </div> <!-- #site-notice --> <h1>Source Code</h1> <p>You can install Subversion by compiling its <a href="#source-release" >source code release</a> directly, or you can install one of the <a href="packages.html" >prepackaged binaries</a> if there is one for your operating system. Unless a release has "<tt>alpha</tt>", "<tt>beta</tt>", or "<tt>rc</tt>" in its name, it is tested and considered stable for production use.</p> <p>When upgrading, just install "on top of" the older release. Subversion 1.x is forward-compatible with any newer 1.y. No repository upgrade is required. As long as client and server both have the same major release number (1), olders clients will work with newer servers and newer clients will work with older servers. The only caveat is that if the client and server minor release numbers don't match (e.g., 1.0 and 1.1), then some of the features of the newer release may not be activated.</p> <div class="h2" id="source-release"> <h2>Source Release <a class="sectionlink" href="#source-release" title="Link to this section">¶</a> </h2> <p>To build Subversion from a source code release:</p> <ol> <li><a href="/download.cgi">Download</a> the latest source code distribution or <a href="#source-svn">checkout</a> the source code from version control.</li> <li>Build and install it according to the instructions in the <a href="https://svn.apache.org/repos/asf/subversion/trunk/INSTALL">INSTALL</a> file in the top level of the distribution.</li> </ol> <p>When your build is complete, you should find the 'svn' binary in the <tt>subversion/svn/</tt> subdirectory (or installed in <tt>/usr/local/bin/</tt>, if you ran 'make install').</p> </div> <!-- #source-release --> <div class="h2" id="source-svn"> <h2>Checking Out Subversion <a class="sectionlink" href="#source-svn" title="Link to this section">¶</a> </h2> <p>Subversion's source code is stored in the <code><a href="https://svn.apache.org/repos/asf/subversion/" >subversion</a></code> tree of the main Subversion repository of the Apache Software Foundation. You can checkout the latest version of the code using the following command:</p> <blockquote> <pre>$ svn co https://svn.apache.org/repos/asf/subversion/trunk subversion </pre> </blockquote> </div> <!-- #source-svn --> <div class="h2" id="web-access"> <h2>Web Access <a class="sectionlink" href="#web-access" title="Link to this section">¶</a> </h2> <p>If you would rather browse the source code than download it, you can do so via <a href="https://svn.apache.org/viewvc/subversion/trunk/" >Apache's ViewVC instance</a>.</p> </div> <!-- #web-access --> </div> <!-- #site-content --> </body> </html>