TheDeveloperBlog.com

Home | Contact Us

C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML

SVN Installation on Ubuntu

SVN Installation on Ubuntu with What is SVN, SVN vs Git, SVN Installation, SVN Repository, Tortoise SVN, Version control System, Import a Project by Tortoise SVN, Visual SVN user Access Permission etc.

<< Back to SVN

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:

sudo apt-get update
sudo apt-get install apache2

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:

sudo apt-get install subversion

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.

sudo mkdir -p /var/lib/svn/
sudo svnadmin create /var/lib/svn/First_repo
sudo chown -R www-data:www-data /var/lib/svn
sudo chmod -R 775 /var/lib/svn

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.

sudo touch /etc/apache2/dav_svn.passwd
sudo htpasswd -m /etc/apache2/dav_svn.passwd admin

To create additional users, use the following commands.

sudo htpasswd -m /etc/apache2/dav_svn.passwd user1
sudo htpasswd -m /etc/apache2/dav_svn.passwd user2

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.

export PATH=/opt/subversion/bin:$PATH 

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

svn --version 

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


Next TopicTortoise SVN




Related Links:


Related Links

Adjectives Ado Ai Android Angular Antonyms Apache Articles Asp Autocad Automata Aws Azure Basic Binary Bitcoin Blockchain C Cassandra Change Coa Computer Control Cpp Create Creating C-Sharp Cyber Daa Data Dbms Deletion Devops Difference Discrete Es6 Ethical Examples Features Firebase Flutter Fs Git Go Hbase History Hive Hiveql How Html Idioms Insertion Installing Ios Java Joomla Js Kafka Kali Laravel Logical Machine Matlab Matrix Mongodb Mysql One Opencv Oracle Ordering Os Pandas Php Pig Pl Postgresql Powershell Prepositions Program Python React Ruby Scala Selecting Selenium Sentence Seo Sharepoint Software Spellings Spotting Spring Sql Sqlite Sqoop Svn Swift Synonyms Talend Testng Types Uml Unity Vbnet Verbal Webdriver What Wpf