Home » SVN Installation on Ubuntu

SVN Installation on Ubuntu

by Online Tutorials Library

SVN Installation on Ubuntu (Linux)

Subversion is open-source and comes under the Apache License, and it was developed by CollabNet Inc in 2000. It was operated much like CVS (Concurrent versions system). In 2009, Apache Incubator accepted it and made it a top-level apache product.

The installation method varies; it depends on the operating system. It comes by default on most of the GNU/Linux operating system.

Let’s install the SVN on Ubuntu.

Install Apache webserver

To access the SVN server using an HTTP URL, we need to install the Apache webserver. If we already have Apache webserver on our machine, skip this step.

To install the Apache web server, run the below command:

The above command will configure the Apache webserver on your machine. The next step is to install the SVN server. Let’s install the SVN server.

Install the SVN Server

SVN comes by default on most GNU/Linux operating system. If it does not exist on your machine, install it.

To install the SVN server package and their dependencies on Linux, run the below command:

The above command will also install the SVN module on your system.

After installation, run the svn status command to ensure that the SVN is successfully installed or not.

After successful installation, create the first repository and users for the SVN server.

Create first Repository

Below commands will be used to create your first SVN repository with name First_repo.

Also, set the required permissions on newly created directories.

For more details on the SVN repository, visit SVN Repository.

Create Users for SVN

Now create first svn user in /etc/apache2/dav_svn.passwd file. These user credentials will be used for authentication of svn repositories for checkout operation, commit processes.

To create additional users, use the following commands.

SVN Installation on Mac

To install the SVN command-line client on a MacOS, follow the below steps:

Step1: Download the required MacOS binary package for your macOS version.

Install the file and follow the next steps.

Step2: When the Binary package is installed, run the below command to set the path.

step3: Confirm the installation, and check the version, run the svn version command:

The above command will display the SVN version and check for the updates.


Next TopicTortoise SVN

You may also like