SVN的學習和使用(二)——SVN安裝
阿新 • • 發佈:2018-10-31
在windows下安裝 SVN
1、準備svn的安裝檔案
下載地址:https://sourceforge.net/projects/win32svn/
2、下載完成後,在相應的碟符中會有一個Setup-Subversion-1.8.16.msi的檔案,目前最新的版本是1.8.16, 這裡就使用這個版本。然後雙擊安裝檔案進行安裝。我們指定安裝在D:\Program Files (x86)\Subversion目錄裡。
3、檢視目錄結構
把svn安裝目錄裡的bin目錄新增到path路徑中,在命令列視窗中輸入 svnserve --help ,檢視安裝正常與否。
至此,windows下的SVN安裝完成
在CentOS下安裝 SVN
大多數 GNU/Linux 發行版系統自帶了Subversion ,所以它很有可能已經安裝在你的系統上了。可以使用下面命令檢查是否安裝了。
svn --version
如果 Subversion 客戶端沒有安裝,命令將報告svn命令找不到的錯誤。
[[email protected] ~]$ svn --version bash: svn: command not found
我們可以使用 yum install subversion 命令進行安裝。
[[email protected]root]$ su -密碼:[[email protected] ~]# yum install subversion已載入外掛:fastestmirror, security設定安裝程序Loading mirror speeds from cached hostfile * base: mirrors.aliyun.com * epel: mirrors.neusoft.edu.cn * extras: mirrors.zju.edu.cn * updates: mirrors.aliyun.com解決依賴關係--> 執行事務檢查...
安裝成功之後,執行 svn --version 命令。
[[email protected] ~]# svn --version svn,版本 1.6.11 (r934486) 編譯於 Aug 17 2015,08:37:43
至此,centos下的SVN安裝完成。
在Ubuntu下安裝 SVN
如果 Subversion 客戶端沒有安裝,命令將報告svn命令找不到的錯誤。
[email protected]:~# svn --versionThe program 'svn' is currently not installed. You can install it by typing:apt-get install subversion
我們可以使用 apt-get 命令進行安裝
[email protected]:~# apt-get install subversionReading package lists... DoneBuilding dependency tree Reading state information... DoneThe following packages were automatically installed and are no longer required: augeas-lenses hiera libaugeas0 libxslt1.1 ruby-augeas ruby-deep-merge ruby-json ruby-nokogiri ruby-rgen ruby-safe-yaml ruby-selinux ruby-shadowUse 'apt-get autoremove' to remove them.The following extra packages will be installed: libserf-1-1 libsvn1...
安裝成功之後,執行 svn --version 命令。
[email protected]:~# svn --version svn, version 1.8.13 (r1667537) compiled Sep 8 2015, 14:59:01 on x86_64-pc-linux-gnu
至此,Ubuntu下的SVN安裝完成。