[root@isstech001 ~]# git -bash: git: command not foundyum安裝 [root@isstech001 ~]# yum install -y git 已加載插件:fastestmirror 設置安裝進程 Loading mirror speeds from cached hostfile file:///mnt/cdrom/repodata/repomd.xml: [Errno 14] Could not open/read file:///mnt/cdrom/repodata/repomd.xml 嘗試其餘鏡像。 解決依賴關係 --> 執行事務檢查 ---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be 安裝 --> 處理依賴關係 perl-Git = 1.7.1-3.el6_4.1,它被軟件包 git-1.7.1-3.el6_4.1.x86_64 須要 --> 處理依賴關係 rsync,它被軟件包 git-1.7.1-3.el6_4.1.x86_64 須要 --> 處理依賴關係 perl(Git),它被軟件包 git-1.7.1-3.el6_4.1.x86_64 須要 --> 處理依賴關係 perl(Error),它被軟件包 git-1.7.1-3.el6_4.1.x86_64 須要 --> 執行事務檢查 ---> Package perl-Error.noarch 1:0.17015-4.el6 will be 安裝 ---> Package perl-Git.noarch 0:1.7.1-3.el6_4.1 will be 安裝 ---> Package rsync.x86_64 0:3.0.6-12.el6 will be 安裝 --> 完成依賴關係計算 依賴關係解決 ========================================================================================================================== 軟件包 架構 版本 倉庫 大小 ========================================================================================================================== 正在安裝: git x86_64 1.7.1-3.el6_4.1 Centos-source-local 4.6 M 爲依賴而安裝: perl-Error noarch 1:0.17015-4.el6 Centos-source-local 29 k perl-Git noarch 1.7.1-3.el6_4.1 Centos-source-local 28 k rsync x86_64 3.0.6-12.el6 Centos-source-local 335 k 事務概要 ========================================================================================================================== Install 4 Package(s) 總下載量:5.0 M Installed size: 15 M 下載軟件包: 下載軟件包出錯: 1:perl-Error-0.17015-4.el6.noarch: failure: Packages/perl-Error-0.17015-4.el6.noarch.rpm from Centos-source-local: [Errno 256] No more mirrors to try. rsync-3.0.6-12.el6.x86_64: failure: Packages/rsync-3.0.6-12.el6.x86_64.rpm from Centos-source-local: [Errno 256] No more mirrors to try. perl-Git-1.7.1-3.el6_4.1.noarch: failure: Packages/perl-Git-1.7.1-3.el6_4.1.noarch.rpm from Centos-source-local: [Errno 256] No more mirrors to try. git-1.7.1-3.el6_4.1.x86_64: failure: Packages/git-1.7.1-3.el6_4.1.x86_64.rpm from Centos-source-local: [Errno 256] No more mirrors to try. 掛載鏡像 [root@isstech001 ~]# mount /dev/cdrom /mnt/cdrom/ mount: block device /dev/sr0 is write-protected, mounting read-only再次經過yum安裝 [root@isstech001 ~]# yum install -y git 已加載插件:fastestmirror 設置安裝進程 Loading mirror speeds from cached hostfile Centos-source-local | 4.0 kB 00:00 ... 解決依賴關係 --> 執行事務檢查 ---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be 安裝 --> 處理依賴關係 perl-Git = 1.7.1-3.el6_4.1,它被軟件包 git-1.7.1-3.el6_4.1.x86_64 須要 --> 處理依賴關係 rsync,它被軟件包 git-1.7.1-3.el6_4.1.x86_64 須要 --> 處理依賴關係 perl(Git),它被軟件包 git-1.7.1-3.el6_4.1.x86_64 須要 --> 處理依賴關係 perl(Error),它被軟件包 git-1.7.1-3.el6_4.1.x86_64 須要 --> 執行事務檢查 ---> Package perl-Error.noarch 1:0.17015-4.el6 will be 安裝 ---> Package perl-Git.noarch 0:1.7.1-3.el6_4.1 will be 安裝 ---> Package rsync.x86_64 0:3.0.6-12.el6 will be 安裝 --> 完成依賴關係計算 依賴關係解決 ========================================================================================================================== 軟件包 架構 版本 倉庫 大小 ========================================================================================================================== 正在安裝: git x86_64 1.7.1-3.el6_4.1 Centos-source-local 4.6 M 爲依賴而安裝: perl-Error noarch 1:0.17015-4.el6 Centos-source-local 29 k perl-Git noarch 1.7.1-3.el6_4.1 Centos-source-local 28 k rsync x86_64 3.0.6-12.el6 Centos-source-local 335 k 事務概要 ========================================================================================================================== Install 4 Package(s) 總下載量:5.0 M Installed size: 15 M 下載軟件包: -------------------------------------------------------------------------------------------------------------------------- 總計 18 MB/s | 5.0 MB 00:00 運行 rpm_check_debug 執行事務測試 事務測試成功 執行事務 正在安裝 : 1:perl-Error-0.17015-4.el6.noarch 1/4 正在安裝 : rsync-3.0.6-12.el6.x86_64 2/4 正在安裝 : perl-Git-1.7.1-3.el6_4.1.noarch 3/4 正在安裝 : git-1.7.1-3.el6_4.1.x86_64 4/4 Verifying : git-1.7.1-3.el6_4.1.x86_64 1/4 Verifying : perl-Git-1.7.1-3.el6_4.1.noarch 2/4 Verifying : 1:perl-Error-0.17015-4.el6.noarch 3/4 Verifying : rsync-3.0.6-12.el6.x86_64 4/4 已安裝: git.x86_64 0:1.7.1-3.el6_4.1 做爲依賴被安裝: perl-Error.noarch 1:0.17015-4.el6 perl-Git.noarch 0:1.7.1-3.el6_4.1 rsync.x86_64 0:3.0.6-12.el6 完畢!