その他
    ホーム技術発信DoRubyCentOS5のsubversionを1.8にしたのでgit-svnのバージョンも上げる(yum)

    CentOS5のsubversionを1.8にしたのでgit-svnのバージョンも上げる(yum)

    この記事はアピリッツの技術ブログ「DoRuby」から移行した記事です。情報が古い可能性がありますのでご注意ください。

    先日CentOS5にSubversion1.8をrpmでインストールしたのですが、
    git-svnもそれに合わせたバージョンを入れる必要がありました。

    wandiscoが提供するリポジトリをyumリポジトリに追加すれば、
    Subversion1.8に合わせたgit-svnをyumでインストールできます。

    git-svnインストール時にSubversion関連も一式インストールされるので、
    一度Subversionをアンインストールしてからyumでインストールしてみました。・環境・手順

    1. リポジトリを追加
    2. GPGキーを取り込む
    3. yumでインストール

    ・おまけ

    ■ 環境

    CentOS5.11 x86_64

    ■ 手順

    1. リポジトリを追加

    /etc/yum.repos.d/wandisco.repo を作成。
    gitとsvnの両方とも設定しておきます。
    (subversion-perlがsvnの方に入ってるので必要。
    最初gitの方だけ設定していて依存関係でおこられました。)

    [wandisco-git]
    name=WANDisco Repository - git-2.0 centos5
    baseurl=http://opensource.wandisco.com/centos/5/git/$basearch/
    enabled=0
    gpgcheck=1
    gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-WANdisco
    
    
    

    [wandisco-svn]

    name=WANDisco Repository – snv-1.8 centos5 baseurl=http://opensource.wandisco.com/centos/5/svn-1.8/RPMS/$basearch/ enabled=0 gpgcheck=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-WANdisco

    2. GPGキーを取り込む

    # rpm --import http://opensource.wandisco.com/RPM-GPG-KEY-WANdisco

    3. yumでインストール

    一度Subversion関連をアンインストール。(しなくてもいいです)

    # yum remove subversion apr

    リポジトリを指定してインストール

    # yum install --enablerepo=wandisco-svn,wandisco-git --disablerepo=base,extras,updates,epel git-svn
    Loaded plugins: fastestmirror, security
    Loading mirror speeds from cached hostfile
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package git-svn.x86_64 0:2.0.0-1.WANdisco.191 set to be updated
    --> Processing Dependency: git = 2.0.0-1.WANdisco.191 for package: git-svn
    --> Processing Dependency: perl(Git::SVN) for package: git-svn
    --> Processing Dependency: perl(Git::SVN::Log) for package: git-svn
    --> Processing Dependency: perl(Git::SVN::Fetcher) for package: git-svn
    --> Processing Dependency: subversion for package: git-svn
    --> Processing Dependency: perl(Git::SVN::Ra) for package: git-svn
    --> Processing Dependency: perl(Git::SVN::Utils) for package: git-svn
    --> Processing Dependency: perl(Git::SVN::Editor) for package: git-svn
    --> Processing Dependency: perl(Git) for package: git-svn
    --> Processing Dependency: perl(Git::SVN::Prompt) for package: git-svn
    --> Processing Dependency: perl(Git::SVN::Migration) for package: git-svn
    --> Running transaction check
    ---> Package git.x86_64 0:2.0.0-1.WANdisco.191 set to be updated
    ---> Package perl-Git.x86_64 0:2.0.0-1.WANdisco.191 set to be updated
    --> Processing Dependency: perl(SVN::Client) for package: perl-Git
    --> Processing Dependency: perl(SVN::Delta) for package: perl-Git
    --> Processing Dependency: perl(SVN::Core) for package: perl-Git
    --> Processing Dependency: perl(SVN::Ra) for package: perl-Git
    ---> Package subversion.x86_64 0:1.8.13-1 set to be updated
    --> Processing Dependency: apr-util >= 1.5.3 for package: subversion
    --> Processing Dependency: apr >= 1.5.0 for package: subversion
    --> Processing Dependency: libapr-1.so.0()(64bit) for package: subversion
    --> Processing Dependency: libserf-1.so.1()(64bit) for package: subversion
    --> Processing Dependency: libaprutil-1.so.0()(64bit) for package: subversion
    --> Running transaction check
    ---> Package apr.x86_64 0:1.5.0-1.WANdisco.2 set to be updated
    ---> Package apr-util.x86_64 0:1.5.3-2.WANdisco.8 set to be updated
    --> Processing Dependency: apr-util-ldap = 1.5.3-2.WANdisco.8 for package: apr-util
    --> Processing Dependency: apr-util-pgsql = 1.5.3-2.WANdisco.8 for package: apr-util
    --> Processing Dependency: apr-util-sqlite = 1.5.3-2.WANdisco.8 for package: apr-util
    ---> Package serf.x86_64 0:1.3.7-1 set to be updated
    ---> Package subversion-perl.x86_64 0:1.8.13-1 set to be updated
    --> Running transaction check
    ---> Package apr-util-ldap.x86_64 0:1.5.3-2.WANdisco.8 set to be updated
    ---> Package apr-util-pgsql.x86_64 0:1.5.3-2.WANdisco.8 set to be updated
    ---> Package apr-util-sqlite.x86_64 0:1.5.3-2.WANdisco.8 set to be updated
    --> Finished Dependency Resolution
    
    Dependencies Resolved
    
    ================================================================================
     Package             Arch       Version                  Repository        Size
    ================================================================================
    Installing:
     git-svn             x86_64     2.0.0-1.WANdisco.191     wandisco-git     459 k
    Installing for dependencies:
     apr                 x86_64     1.5.0-1.WANdisco.2       wandisco-svn      98 k
     apr-util            x86_64     1.5.3-2.WANdisco.8       wandisco-svn      81 k
     apr-util-ldap       x86_64     1.5.3-2.WANdisco.8       wandisco-svn     6.4 k
     apr-util-pgsql      x86_64     1.5.3-2.WANdisco.8       wandisco-svn      11 k
     apr-util-sqlite     x86_64     1.5.3-2.WANdisco.8       wandisco-svn     8.4 k
     git                 x86_64     2.0.0-1.WANdisco.191     wandisco-git      11 M
     perl-Git            x86_64     2.0.0-1.WANdisco.191     wandisco-git      66 k
     serf                x86_64     1.3.7-1                  wandisco-svn      47 k
     subversion          x86_64     1.8.13-1                 wandisco-svn     2.7 M
     subversion-perl     x86_64     1.8.13-1                 wandisco-svn     1.4 M
    
    Transaction Summary
    ================================================================================
    Install      11 Package(s)
    Upgrade       0 Package(s)
    
    Total download size: 15 M
    Is this ok [y/N]:
    
    
      

    Subversion1.8に合わせたgit-svnやgit等、一式インストールできました。

    参考サイト
    CentOS 6でsubversionのバージョンを上げる
    リポジトリを指定してyum installする

    ■ おまけ

    Subversion1.8だけ入れたい場合

    /etc/yum.repos.d/wandisco.repoにsvnの設定だけして
    GPGキー取り込み後、以下を実行すれば一式インストールされます。

    # yum install --enablerepo=wandisco-svn --disablerepo=base,extras,updates,epel subversion

    シェルスクリプトをダウンロード(登録制)する方法もあるようです。
    Subversion 1.8系をCentOSにInstall (YUM経由)
    WANdisco Subversion Download | WANdisco CentOS 5

    rpmでgit-svnを入れたい場合

    以下のものをインストールすればOKでした。(Subversion1.8前提)

    http://opensource.wandisco.com/rhel/5/git/x86_64/git-2.0.0-1.WANdisco.191.x86_64.rpm
    http://opensource.wandisco.com/rhel/5/git/x86_64/perl-Git-2.0.0-1.WANdisco.191.x86_64.rpm
    http://opensource.wandisco.com/rhel/5/git/x86_64/git-svn-2.0.0-1.WANdisco.191.x86_64.rpm
    http://opensource.wandisco.com/rhel/5/svn-1.8/RPMS/x86_64/subversion-perl-1.8.10-6.x86_64.rpm
      
    # rpm -ivh http://opensource.wandisco.com/rhel/5/git/x86_64/git-2.0.0-1.WANdisco.191.x86_64.rpm http://opensource.wandisco.com/rhel/5/git/x86_64/perl-Git-2.0.0-1.WANdisco.191.x86_64.rpm http://opensource.wandisco.com/rhel/5/git/x86_64/git-svn-2.0.0-1.WANdisco.191.x86_64.rpm http://opensource.wandisco.com/rhel/5/svn-1.8/RPMS/x86_64/subversion-perl-1.8.10-6.x86_64.rpm