-
设置 yum 源
使用vim创建文件 /etc/yum.repos.d/wandisco-svn.repo 然后添加下面的内容|-------------|-------------------------------------------------------| |
1 2
|# 打开文件 vim /etc/yum.repos.d/wandisco-svn.repo
|写入内容
|-------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------| |
1 2 3 4 5
|[WandiscoSVN] name=Wandisco SVN Repo baseurl=http://opensource.wandisco.com/centos/$releasever/svn-1.9/RPMS/$basearch/ enabled=1 gpgcheck=0
| -
安装 Subversion 1.9
在开始安装前,我们要先删除你机器上已经存在的svn(如果存在)|-------------|----------------------------------------------| |
1 2
|yum remove subversion* yum clean all
|现在可以使用yum安装了
|-----------|--------------------------------| |
1
|yum install subversion
| -
查看svn版本
到这里,我们的svn安装就完成了,我们可以使用下面的命令查看版本号|-----------|-----------------------| |
1
|svn --version
|输出结果,看到1.9.7 说明你的安装是成功的了
|---------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|svn, version 1.9.7 (r1800392) compiled Aug 10 2017, 21:36:06 on x86_64-redhat-linux-gnu Copyright (C) 2017 The Apache Software Foundation. This software consists of contributions made by many people; see the NOTICE file for more information. Subversion is open source software, see http://subversion.apache.org/ The following repository access (RA) modules are available: * ra_svn : Module for accessing a repository using the svn network protocol. - with Cyrus SASL authentication - handles 'svn' scheme * ra_local : Module for accessing a repository on local disk. - handles 'file' scheme * ra_serf : Module for accessing a repository via WebDAV protocol using serf. - using serf 1.3.7 (compiled with 1.3.7) - handles 'http' scheme - handles 'https' scheme The following authentication credential caches are available: * Plaintext cache in /root/.subversion * Gnome Keyring * GPG-Agent
| -
其他命令
安装完成后,实际上我们在服务器上就拥有了svn
的客户端和服务端,像checkout/update
这些命令都能使用了,不过你的使用命令来操作,如果你不会svn的命令,可以看下 svn命令教程
svn
的一些服务端命令也能使用,像创建仓库的svnadmin create
也都是可以使用的。
CentOS7服务器上安装SVN1.9
未经允许不得转载:工具盒子 » CentOS7服务器上安装SVN1.9