如何在Ubuntu和Debian安装Subversion(SVN)1.8.15

感谢 Wandisco 团队,他们保持Debian的软件包subversion的最新版本 。本文将帮助您在Ubuntu和Debian系统安装Subversion 1.8.15(SVN)。

1. 设置APT仓库

首先,你需要在系统中配置APT仓库。使用下面的命令来在你的Ubuntu和Debian系统添加存储库。

对于Ubuntu的系统: -

$ sudo sh -c 'echo "deb http://opensource.wandisco.com/ubuntu `lsb_release -cs` svn18" >> /etc/apt/sources.list.d/subversion18.list'
$ sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
$ sudo apt-get update

对于Debian系统: -

$ sudo sh -c 'echo "deb http://opensource.wandisco.com/debian `lsb_release -cs` svn18" >> /etc/apt/sources.list.d/subversion18.list'
$ sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
$ sudo apt-get update

2. 安装Subversion软件包

如果你在系统上安装旧版本。你可能会面临一些冲突的问题。因此,首先从系统中删除现有包,以避免任何冲突。
$ sudo apt-get remove subversion
现在使用yum命令行包管理器工具安装最新提供的Subversion包。
$ sudo apt-get install subversion

3. 验证Subversion版本

在这个阶段,你已经成功地在系统上安装Subversion客户端。让我们用下面的命令来验证svn客户端版本。
# svn --version


svn, version 1.8.15 (r1718365)
   compiled Dec  8 2015, 17:28:26 on x86_64-unknown-linux-gnu

Copyright (C) 2015 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
  - handles 'http' scheme
  - handles 'https' scheme

参考文献:  http://opensource.wandisco.com/
赞(52) 打赏
未经允许不得转载:优客志 » 系统运维
分享到:

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

微信扫一扫打赏