在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
相關文章
相關標籤/搜索