Install svn using yum in CentOS

Source: Internet
Author: User

Install svn using yum in CentOS

Install svn in yum

[root@LAMP1 html]# yum -y install subversionLoaded plugins: fastestmirror, prestoLoading mirror speeds from cached hostfile * base: mirrors.pubyun.com * extras: mirrors.pubyun.com * updates: mirrors.pubyun.comSetting up Install ProcessResolving Dependencies--> Running transaction check---> Package subversion.x86_64 0:1.6.11-12.el6_6 will be installed--> Processing Dependency: perl(URI) >= 1.17 for package: subversion-1.6.11-12.el6_6.x86_64--> Processing Dependency: libneon.so.27()(64bit) for package: subversion-1.6.11-12.el6_6.x86_64--> Running transaction check---> Package neon.x86_64 0:0.29.3-3.el6_4 will be installed--> Processing Dependency: libgnutls.so.26(GNUTLS_1_4)(64bit) for package: neon-0.29.3-3.el6_4.x86_64--> Processing Dependency: libproxy.so.0()(64bit) for package: neon-0.29.3-3.el6_4.x86_64--> Processing Dependency: libpakchois.so.0()(64bit) for package: neon-0.29.3-3.el6_4.x86_64--> Processing Dependency: libgnutls.so.26()(64bit) for package: neon-0.29.3-3.el6_4.x86_64---> Package perl-URI.noarch 0:1.40-2.el6 will be installed--> Running transaction check---> Package gnutls.x86_64 0:2.8.5-14.el6_5 will be installed--> Processing Dependency: libtasn1.so.3(LIBTASN1_0_3)(64bit) for package: gnutls-2.8.5-14.el6_5.x86_64--> Processing Dependency: libtasn1.so.3()(64bit) for package: gnutls-2.8.5-14.el6_5.x86_64---> Package libproxy.x86_64 0:0.3.0-10.el6 will be installed--> Processing Dependency: libproxy-python = 0.3.0-10.el6 for package: libproxy-0.3.0-10.el6.x86_64--> Processing Dependency: libproxy-bin = 0.3.0-10.el6 for package: libproxy-0.3.0-10.el6.x86_64---> Package pakchois.x86_64 0:0.4-3.2.el6 will be installed--> Running transaction check---> Package libproxy-bin.x86_64 0:0.3.0-10.el6 will be installed---> Package libproxy-python.x86_64 0:0.3.0-10.el6 will be installed---> Package libtasn1.x86_64 0:2.3-6.el6_5 will be installed--> Finished Dependency ResolutionDependencies Resolved============================================================================================================================================================================================== Package                                           Arch                                     Version                                           Repository                                 Size==============================================================================================================================================================================================Installing: subversion                                        x86_64                                   1.6.11-12.el6_6                                   updates                                   2.3 MInstalling for dependencies: gnutls                                            x86_64                                   2.8.5-14.el6_5                                    base                                      346 k libproxy                                          x86_64                                   0.3.0-10.el6                                      base                                       39 k libproxy-bin                                      x86_64                                   0.3.0-10.el6                                      base                                      9.0 k libproxy-python                                   x86_64                                   0.3.0-10.el6                                      base                                      9.1 k libtasn1                                          x86_64                                   2.3-6.el6_5                                       base                                      238 k neon                                              x86_64                                   0.29.3-3.el6_4                                    base                                      119 k pakchois                                          x86_64                                   0.4-3.2.el6                                       base                                       21 k perl-URI                                          noarch                                   1.40-2.el6                                        base                                      117 kTransaction Summary==============================================================================================================================================================================================Install       9 Package(s)Total download size: 3.2 MInstalled size: 14 MDownloading Packages:Setting up and reading Presto delta metadataupdates/prestodelta                                                                                                                                                    | 233 kB     00:00     Processing delta metadataPackage(s) data still to download: 3.2 M(1/9): gnutls-2.8.5-14.el6_5.x86_64.rpm                                                                                                                                | 346 kB     00:00     (2/9): libproxy-0.3.0-10.el6.x86_64.rpm                                                                                                                                |  39 kB     00:00     (3/9): libproxy-bin-0.3.0-10.el6.x86_64.rpm                                                                                                                            | 9.0 kB     00:00     (4/9): libproxy-python-0.3.0-10.el6.x86_64.rpm                                                                                                                         | 9.1 kB     00:00     (5/9): libtasn1-2.3-6.el6_5.x86_64.rpm                                                                                                                                 | 238 kB     00:00     (6/9): neon-0.29.3-3.el6_4.x86_64.rpm                                                                                                                                  | 119 kB     00:00     (7/9): pakchois-0.4-3.2.el6.x86_64.rpm                                                                                                                                 |  21 kB     00:00     (8/9): perl-URI-1.40-2.el6.noarch.rpm                                                                                                                                  | 117 kB     00:00     (9/9): subversion-1.6.11-12.el6_6.x86_64.rpm                                                                                                                           | 2.3 MB     00:00     ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------Total                                                                                                                                                         2.3 MB/s | 3.2 MB     00:01     Running rpm_check_debugRunning Transaction TestTransaction Test SucceededRunning Transaction  Installing : libproxy-bin-0.3.0-10.el6.x86_64                                                                                                                                           1/9   Installing : libproxy-python-0.3.0-10.el6.x86_64                                                                                                                                        2/9   Installing : libproxy-0.3.0-10.el6.x86_64                                                                                                                                               3/9   Installing : perl-URI-1.40-2.el6.noarch                                                                                                                                                 4/9   Installing : libtasn1-2.3-6.el6_5.x86_64                                                                                                                                                5/9   Installing : gnutls-2.8.5-14.el6_5.x86_64                                                                                                                                               6/9   Installing : pakchois-0.4-3.2.el6.x86_64                                                                                                                                                7/9   Installing : neon-0.29.3-3.el6_4.x86_64                                                                                                                                                 8/9   Installing : subversion-1.6.11-12.el6_6.x86_64                                                                                                                                          9/9   Verifying  : libproxy-0.3.0-10.el6.x86_64                                                                                                                                               1/9   Verifying  : libproxy-bin-0.3.0-10.el6.x86_64                                                                                                                                           2/9   Verifying  : subversion-1.6.11-12.el6_6.x86_64                                                                                                                                          3/9   Verifying  : pakchois-0.4-3.2.el6.x86_64                                                                                                                                                4/9   Verifying  : libproxy-python-0.3.0-10.el6.x86_64                                                                                                                                        5/9   Verifying  : libtasn1-2.3-6.el6_5.x86_64                                                                                                                                                6/9   Verifying  : neon-0.29.3-3.el6_4.x86_64                                                                                                                                                 7/9   Verifying  : gnutls-2.8.5-14.el6_5.x86_64                                                                                                                                               8/9   Verifying  : perl-URI-1.40-2.el6.noarch                                                                                                                                                 9/9 Installed:  subversion.x86_64 0:1.6.11-12.el6_6                                                                                                                                                         Dependency Installed:  gnutls.x86_64 0:2.8.5-14.el6_5     libproxy.x86_64 0:0.3.0-10.el6     libproxy-bin.x86_64 0:0.3.0-10.el6     libproxy-python.x86_64 0:0.3.0-10.el6     libtasn1.x86_64 0:2.3-6.el6_5      neon.x86_64 0:0.29.3-3.el6_4       pakchois.x86_64 0:0.4-3.2.el6      perl-URI.noarch 0:1.40-2.el6          Complete![root@LAMP1 html]# 

Then the installation is successful. We create a svn root directory:

Mkdir/var/www/svndata

Then we need to use svnadmin to create a code base myproject1:

Svnadmin/var/www/svndata/myproject1

Then we created a code repository and started to operate it. Before that, we need to configure svn users and permissions under myproject1.

First, we can see the structure in the/var/www/svndata/myproject1/directory:

[Root @ LAMP1 myproject1] # Total ll usage: 24drwxr-xr-x. 2 root 4096 March 19 15:03 confdrwxr-sr-x. 6 root 4096 March 19 13:54 db-r --. 1 root 2 March 19 13:33 formatdrwxr-xr-x. 2 root 4096 March 19 13:33 hooksdrwxr-xr-x. 2 root 4096 March 19 13:33 locks-rw-r --. 1 root 229 March 19 13:33 README.txt [root @ LAMP1 myproject1] #

We need to go to conf. There are many good things:

[Root @ LAMP1 conf] # ll total usage 12-rw-r -- r --. 1 root 1174 14:39 authz-rw-r --. 1 root 314 March 19 14:38 passwd-rw-r --. 1 root 2274 March 19 13:34 svnserve. conf [root @ LAMP1 conf] #

First, we need to go to svnserve. conf to set the permissions for anonymous users and authorized users:

anon-access = noneauth-access = write

Then we create a user in the passwd file:

[users]san.zhang=123456si.li=123456wu.wang=123456

Then set the user group and authorization in the authz file:

[groups]users=si.li,wu.wangadmin=san.zhang[/]@admin=rw*=r[chromext:/branches]@users=rw

@ Indicates the group followed by the group. If no @ indicates the user name.

Finally, we can start our svn Server:

svnserve -d -r /var/www/svndata/

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.