How to Install and Configure Apache Subversion(SVN) In Linux?
Last Updated :
06 Oct, 2021
Apache Subversion (SVN), is a version control system like Git. it is distributed under an open-source license. SVN was created by
CollabNet Inc. but now it is developed as a project of the
Apache Software Foundation.
Downloading and Installing Apache SVN
Apache Subversion(SVN) can be easily downloaded and installed with the use of the command-line. Following steps provide a step-by-step procedure to install Apache SVN:
Step 1: First, we need to Install the
subversion, apache2 and libapache2-svn/libapache2-mod-svn packages.
For this open terminal and type the following command and press Enter:
$ sudo apt install subversion apache2 libapache2-mod-svn
Step 2: Now create a SVN directory, at the root of file system. Type the following command and press Enter:
$ sudo mkdir /svn
Step 3: Now, change the owner's permission of the directory to the webserver user,
www-data by default.
$ sudo chown www-data:www-data /svn
Step 4: Now change to superuser by typing this command and then type password
$ sudo su

now switch to
www-data user
$ su -s /bin/bash www-data
Step 5: Create a new SVN repository to store files.
$ svnadmin create /svn/repo
Step 6: Now we'll have to create credentials for User:
$ htpasswd -cmb /svn/passwd admin password

here "
admin" is username and "
password" is password
Step 7: Now exit from www-data and install Vim editor. Type the following command to install Vim editor:
$ sudo apt-get install vim
Step 8: Open and edit SVN configuration file in sudo mode with the use of following command:
$ sudo vim /etc/apache2/mods-enabled/dav_svn.conf

Now, paste the following code in that file:
html
<Location /repo>
DAV svn
SVNPath /svn/repo
AuthUserFile /svn/passwd
Require valid-user
AuthType basic
AuthName "Subversion"
</Location>
Now save the file and exit the Vim Editor by using the command
:wq
Step 9: Now restart Apache Subversion and you are done with the installation process. Type the following command and press Enter:
$ sudo /etc/init.d/apache2 restart
Similar Reads
Linux Commands Cheat Sheet Linux, often associated with being a complex operating system primarily used by developers, may not necessarily fit that description entirely. While it can initially appear challenging for beginners, once you immerse yourself in the Linux world, you may find it difficult to return to your previous W
13 min read
Linux/Unix Tutorial Linux is one of the most widely used open-source operating systems. It's fast, secure, stable, and powers everything from smartphones and servers to cloud platforms and IoT devices. Linux is especially popular among developers, system administrators, and DevOps professionals.Linux is:A Unix-like OS
10 min read
25 Basic Linux Commands For Beginners [2025] While performing a task, we all need shortcuts. Shortcuts help us to complete a task quickly. Linux comes with such commands which are one to two words, using that commands, you can perform several operations in no time. As a beginner, you must be aware of those basic Linux commands to complete an o
13 min read
grep command in Unix/Linux The grep command is one of the most useful tools in Linux and Unix systems. It is used to search for specific words, phrases, or patterns inside text files, and shows the matching lines on your screen. Syntax of grep Command in Unix/LinuxThe basic syntax of the `grep` command is as follows:grep [opt
6 min read
Sed Command in Linux/Unix With Examples The SED command (short for Stream Editor) is one of the most powerful tools for text processing in Linux and Unix systems. It's commonly used for tasks like search and replace, text transformation, and stream editing.With SED, you can manipulate text files without opening them in an editor. This mak
8 min read
AWK command in Unix/Linux with examples Awk is a scripting language used for manipulating data and generating reports. The awk command programming language requires no compiling and allows the user to use variables, numeric functions, string functions, and logical operators. Awk is a utility that enables a programmer to write tiny but eff
8 min read
Read JSON file using Python The full form of JSON is JavaScript Object Notation. It means that a script (executable) file which is made of text in a programming language, is used to store and transfer the data. Python supports JSON through a built-in package called JSON. To use this feature, we import the JSON package in Pytho
4 min read
Introduction to Linux Shell and Shell Scripting If we are using any major operating system, we are indirectly interacting with the shell. While running Ubuntu, Linux Mint, or any other Linux distribution, we are interacting with the shell by using the terminal. In this article we will discuss Linux shells and shell scripting so before understandi
8 min read
How to Install PIP on Windows PIP stands for "Preferred Installer Program" or "Pip Installs Packages" and is a standard package manager for Python that enables users to install and manage additional libraries and dependencies not included in the standard Python library. To use PIP, you must install Python on your Windows machine
6 min read
How to Find a File in Linux | Find Command The find command in Linux is used to search for files and directories based on name, type, size, date, or other conditions. It scans the specified directory and its sub directories to locate files matching the given criteria.find command uses are:Search based on modification time (e.g., files edited
9 min read