2020년 9월 16일

CentOS 7.x 에서 subversion 1.8 사용하기

Subversion 서버에서 소스를 가져와서 실행할 수 있도록 리눅스 기반 개발서버를 구성하여 사용하고 있다. 서버의 Subversion 버전이 업그레이드 되면서 클라이언트에 해당하는 개발 서버 역시 svn 도구의 업그레이드가 필요하게 되었다. 문제는 개발 서버에 설치된 리눅스 CentOS 7.x 버전에서는 subversion 1.7.x 버전이 Yum 설치를 통하여 지원되는 최신 버전이라는 점이다. (1.8 이상을 설치해야 한다.)

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


yum update subversion 명령을 사용하여 업데이트를 진행하였으나 1.7.14-14.el7 이 지원되는 최신 버전이다. 구글 검색을 해보니 Subversion 1.8.x 설치를 위하여 새로운 Yum repository 를 추가하고 설치하면 된는 것 같다. 

① 새로운 파일 /etc/yum.repos.d/wandisco-svn.repo 만들고 아래 내용을 추가한다.

#vi /etc/yum.repos.d/wandisco-svn.repo
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/$releasever/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0

② 설치된 subversion 를 제거하고 다시 설치한다.

yum remove subversion*
yum clean all
yum install subversion

마지막으로 설치가 끝나면  svn --version 명령을 사용하여 버전을 확인한다.

# svn --version

svn, version 1.8.19 (r1800620)
   compiled Aug 11 2017, 09:34:52 on x86_64-redhat-linux-gnu

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



참고자료 

댓글 없음:

댓글 쓰기