Linux 下安装 svn 客户端
以 CentOS 6.3为例,在第一张光盘的 Packages 目录下:
[root@localhost Packages]$ ls sub*
subversion-1.6.11-7.el6.i686.rpm subversion-javahl-1.6.11-7.el6.i686.rpm
subversion-1.6.11-7.el6.x86_64.rpm subversion-javahl-1.6.11-7.el6.x86_64.rpm
[root@localhost Packages]$ rpm -ivh subversion-1.6.11-7.el6.x86_64.rpm
error: Failed dependencies:
perl(URI) >= 1.17 is needed by subversion-1.6.11-7.el6.x86_64
[root@localhost Packages]$ ls perl*
...
[root@localhost Packages]# rpm -ivh perl-URI-1.40-2.el6.noarch.rpm
Preparing... ########################################### [100%]
1:perl-URI ########################################### [100%]
[root@localhost Packages]# rpm -ivh subversion-1.6.11-7.el6.x86_64.rpm
Preparing... ########################################### [100%]
1:subversion ########################################### [100%]
用 svn help 命令看看是否安装成功(执行命令后有如下内容显示说明安装成功了!):
[root@localhost Packages]# svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.6.11.
Type 'svn help <subcommand>' for help on a specific subcommand.
Type 'svn --version' to see the program version and RA modules
or 'svn --version --quiet' to see just the version number.
Most subcommands take file and/or directory arguments, recursing
on the directories. If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.
Available subcommands:
add
blame (praise, annotate, ann)
cat
changelist (cl)
checkout (co)
cleanup
commit (ci)
copy (cp)
delete (del, remove, rm)
diff (di)
export
help (?, h)
import
info
list (ls)
lock
log
merge
mergeinfo
mkdir
move (mv, rename, ren)
propdel (pdel, pd)
propedit (pedit, pe)
propget (pget, pg)
proplist (plist, pl)
propset (pset, ps)
resolve
resolved
revert
status (stat, st)
switch (sw)
unlock
update (up)
Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/
[root@localhost Packages]#