C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
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 webserverTo 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 ServerSVN 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 RepositoryBelow 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 SVNNow 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 MacTo 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
|