How to install Subversion in CentOS 7

Source: Internet
Author: User

How to install Subversion in CentOS 7

Apache Subversion (SVN for short) is an open-source version control system. It adopts a branch management system compared with the RFM and CVS systems. Its design goal is to replace CVS. Many version control services on the Internet have been transferred from CVS to Subversion.

The following describes how to install Subversion in CentOS 7.

1. Start to install Subversion in CentOS 7

Yum install mod_dav_svn subversion

Sample output:

========================================================== ==================
Package Arch Version Repository Size
========================================================== ==================
Installing:
Mod_dav_svn x86_64 1.7.14-6. el7 base 101 k
Subversion x86_64 1.7.14-6. el7 base 1.0 M
Installing for dependencies:
Apr x86_64 1.4.8-3. el7 base 103 k
Apr-util x86_64 1.5.2-6. el7 base 92 k
Httpd x86_64 2.4.6-18. el7.centos updateles 2.7 M
Httpd-tools x86_64 2.4.6-18. el7.centos updates 77 k
Mailcap noarch 2.1.41-2. el7 base 31 k
Neon x86_64 0.30.0-3. el7 base 165 k
Pakchois x86_64 0.4-10. el7 base 14 k
Subversion-libs x86_64 1.7.14-6. el7 base 921 k

Transaction Summary
========================================================== ==================

2. Add the configuration file to Apache

LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
 
<Location/svn>
DAV svn
SVNParentPath/var/www/bkjiasvn
AuthType Basic
AuthName "Subversion repositories"
AuthUserFile/etc/svn-auth-users
Require valid-user
</Location>

3. Create SVN users

[Root @ bkjia-centos7 ~] # Htpasswd-cm/etc/svn-auth-users testuser1
New password:
Re-type new password:
Adding password for user testuser1
[Root @ bkjia-centos7 ~] #

4. Create and configure the SVN Repository

Mkdir/var/www/bkjiasvn
Cd/var/www/bkjiasvn
Svnadmin create repo
Chown-R apache. apache repo

# If you still have issues with SELinux Security please apply this:
Chcon-R-t httpd_sys_content_t/var/www/bkjiasvn/repo
Chcon-R-t httpd_sys_rw_content_t/var/www/bkjiasvn/repo

5. You can use this method-HTTP and HTTPS

Firewall-cmd -- permanent -- zone = public -- add-service = http
Firewall-cmd -- permanent -- zone = public -- add-service = https
Firewall-cmd -- reload

6. Enable and start the HTTP service

Systemctl enable httpd. service
Systemctl restart httpd. service

7. Add the following to conf/svnserve. conf.

Anon-access = none
Auth-access = authz

8. Create a svn repository in branches & tags & trunk Mode

Mkdir-p/tmp/svn-structure-template/{trunk, branches, tags}

Svn import-m "Initial repository"/tmp/svn-structure-template file: // var/www/bkjiasvn/repo/
Adding/tmp/svn-structure-template/branches
Adding/tmp/svn-structure-template/tags
Adding/tmp/svn-structure-template/trunk

Committed revision 1.

OK.

CentOS 6 compilation and installation of Subversion-1.8.10 + Apache2.4

Subversion configuration instances in Linux

CentOS 6.2 SVN setup (YUM installation)

Build an SVN server using Apache + SVN

Set up and use the SVN server in Windows + reset the password on the client

Install SVN in Ubuntu Server 12.04 and migrate Virtual SVN data

Build svn service and migration method on Ubuntu Server

 

 

Author: Where can I find out about huadi? Visit the linux community.

Help House Original translation Channel:

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.