1、到
http://subversion.tigris.org/getting.html網(wǎng)站上
下載需要安裝的版本。
2、主要下載以下幾個安裝包,以subversion1.6.1為例:
apr-0.9.12-2.i386.rpm
apr-util-0.9.12-1.i386.rpm
neon-0.28.4-1.i386.rpm
subversion-1.6.1-1.i386.rpm
sqlite-3.5.9-4.1.i386.rpm
3、安裝這些包之前,檢查一下這些安裝包是否已經(jīng)存在和它的版本。
例:
#rpm –q apr
若檢查出包已存在且版本低于當(dāng)前下載的版本,安裝是要采用rpm –Uvh來升級一下。
4、安裝這些包。
#rpm –ivh apr-0.9.12-2.i386.rpm或(rpm –Uvh apr-0.9.12-2.i386.rpm)
#rpm –ivh apr-util-0.9.12-1.i386.rpm或(rpm –Uvh apr-util-0.9.12-1.i386.rpm)
#rpm –ivh neon-0.28.4-1.i386.rpm或(rpm –Uvh neon-0.28.4-1.i386.rpm)
#rpm –ivh sqlite-3.5.9-4.1.i386.rpm
#rpm –ivh subversion-1.6.1-1.i386.rpm
5、安裝完之后,檢查一下安裝版本。
#
svn --version
svn: warning: cannot set LC_CTYPE locale
svn: warning: environment variable LANG is en_CN.GB18030
svn: warning: please
check that your locale name is correct
svn, version 1.6.1 (r37116)
compiled Apr 11 2009, 14:26:16
Copyright (C) 2000-2009 CollabNet.
Subversion is open source software, see
http://subversion.tigris.org/
This product includes software developed by CollabNet (
http://www.Collab.Net/).
The following repository access (RA)
modules are available:
* ra_neon : Module for accessing a repository via WebDAV protocol using Neon.
- handles 'http' scheme
- handles 'https' scheme
* 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
6、出現(xiàn)上面的警告情況時,需要做以下
設(shè)置:
# echo "export LC_ALL=C" >> /etc/profile
# export LC_ALL=C
警告即可消除。
7、啟動
svnserve服務(wù)。
#svnserve –d
安裝時不指定安裝路徑的話,svn服務(wù)存在/
usr/bin
目錄下。
8、卸載subversion rpm安裝包:
#rpm –e subversion-1.6.1-1.i386