gitcommandnotfound
[root@isstech001 ~]# git
-bash: git: command not found
yum安装
[root@isstech001 ~]# yum install -y git
已加载插件:fastestmirror
设置安装进程
Loading mirror speeds from cached hostfile
file:///mnt/cdrom/l: [Errno 14] Could not open/read file:///mnt/cdrom/l
尝试其他镜像
--> 执⾏事务检查
---> 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 需要
--> 执⾏事务检查
---> arch 1:0.17015-4.el6 will be 安装
---> arch 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.arch: failure: Packages/perl-Error-0.arch.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_arch: failure: Packages/perl-Git-1.7.1-3.el6_arch.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 需要
--> 执⾏事务检查
---> arch 1:0.17015-4.el6 will be 安装
---> arch 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.arch                                                                      1/4
正在安装  : rsync-3.0.6-12.el6.x86_64                                                                              2/4
正在安装  : perl-Git-1.7.1-3.el6_arch                                                                        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_arch                                                                        2/4
Verifying  : 1:perl-Error-0.arch                                                                      3/4
Verifying  : rsync-3.0.6-12.el6.x86_64                                                                              4/4
已安装:
git.x86_64 0:1.7.1-3.el6_4.1
作为依赖被安装:
完毕!