在Ubuntu 和 Debian 上安装svn-1.9

Ubuntu 12.04 自带的svn是版本是1.6的,使用apt-get也没法更新到最新的,下载源码编译的话又须要另行安装其余的依赖包,操做会很麻烦。我写这篇日记的时候svn已经更新到1.9了。
下文的内容是我翻译的一篇博客。linux

我使用下文的方法成功地在Ubuntu 12.04上安装了svn-1.9。apache


原标题:How to Install Subversion 1.9 on Ubuntu & Debian   --Written by myadmin
原连接:http://tecadmin.net/install-subversion-1-9-on-ubuntu/
译文:ubuntu

感谢 Wandisco 团队维护最新版本的subversion Debian软件包。这篇文章会助你在Ubuntu 和Debian系统上安装Subversion 1.9 (SVN)。bash

1. 配置apt仓库
首先,你须要在你的系统里配置apt仓库。使用下列命令在你的Ubuntu或Debian系统上添加仓库。
Ubuntu系统使用如下命令:svn

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


2. 安装Subversion 1.9软件包
若是你的系统上安装了旧版的svn,你可能会遇到一些冲突问题,因此须要先删除掉已经安装的svn软件包以避免冲突。.net

$ sudo apt-get remove subversion

如今使用yum命令行软件包管理工具安装最新的subversion。命令行

$ sudo apt-get install subversion

3. 验证subversion版本
到这里你已经成功地在你的系统里安装了subversion客户端。让咱们使用如下命令来验证svn客户端的版本吧。翻译

# svn --version


svn, version 1.9.3 (r1718519)
   compiled Dec  9 2015, 12:45:52 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 (compiled with 1.3.7)
  - handles 'http' scheme
  - handles 'https' scheme
相关文章
相关标签/搜索