LoginSignup
2

More than 3 years have passed since last update.

CentOS7 で Subversion 1.9 系をインストールする方法

Last updated at Posted at 2019-06-13

概要

CentOS 7 で yum コマンドから Subversion をインストールすると以下のように 1.7 系の svn がインストールされます。

# yum install -y subversion
# svn --version
svn, version 1.7.14 (r1542130)
   compiled Apr 11 2018, 02:40:28

ケースとしては少ないと思いますが、Windows の Tortoise SVN からチェックアウトした作業コピーを CentOS 7 へ転送し、svn コマンドを実行した場合、以下のようなエラーが発生することがあります。

# svn propget -R svn:externals .
svn: E155021: This client is too old to work with the working copy at
'/data/test' (format 31).
You need to get a newer Subversion client. For more details, see
  http://subversion.apache.org/faq.html#working-copy-format-change

これは TortoiseSVN の SVN バージョンが 1.9 系で CentOS 7 の SVN バージョンが 1.7 系のため作業コピーのバージョン差異によって svn のコマンドが使えない状態を示しています。

本記事では CentOS 7 で Subversion 1.9 系をインストールする方法について記載します。

手順

以下のファイルを編集または新規作成します。

# vi /etc/yum.repos.d/subversion.repo

以下の内容を追加して上書き保存します。

[subversion]
name=subversion
baseurl=http://opensource.wandisco.com/rhel/7/svn-1.9/RPMS/
enabled=1
gpgcheck=1
gpgkey=http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco

yum コマンドから Subversion をインストールします。

# yum install -y subversion
# svn --version
svn, version 1.9.9 (r1835931)
   compiled Jul 25 2018, 12:41:27 on x86_64-redhat-linux-gnu

CentOS 7 に 1.9 系の Subversion がインストールされました。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2