加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

【Docker实战之入门】错误:-bash: git: command not found 安装

发布时间:2020-12-14 16:38:42 所属栏目:百科 来源:网络整理
导读:使用 git clone 命令时,出错 -bash: git: command not found 安装 git 如下 [root@Optimus /]# yum install -y gitLoaded plugins: fastestmirror,refresh-packagekit,securitySetting up Install ProcessLoading mirror speeds from cached hostfileepel/m

使用git clone命令时,出错-bash: git: command not found

安装git如下

[root@Optimus /]# yum install -y git
Loaded plugins: fastestmirror,refresh-packagekit,security
Setting up Install Process
Loading mirror speeds from cached hostfile
epel/metalink                                                          | 7.1 kB     00:00     
          * base: mirrors.btte.net
          * epel: mirrors.ustc.edu.cn
          * extras: mirrors.btte.net
          * updates: mirrors.btte.net
base                                                                   | 3.7 kB     00:00     
extras                                                                 | 3.4 kB     00:00     
nginx                                                                  | 2.9 kB     00:00     
updates                                                                | 3.4 kB     00:00     
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.1-9.el6_9 will be installed
--> Processing Dependency: perl-Git = 1.7.1-9.el6_9 for package: git-1.7.1-9.el6_9.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.1-9.el6_9.x86_64
--> Processing Dependency: perl(Error) for package: git-1.7.1-9.el6_9.x86_64
--> Running transaction check
---> Package perl-Error.noarch 1:0.17015-4.el6 will be installed
---> Package perl-Git.noarch 0:1.7.1-9.el6_9 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================
Package Arch Version Repository Size

Installing:
git x86_64 1.7.1-9.el6_9 updates 4.6 M
Installing for dependencies:
perl-Error noarch 1:0.17015-4.el6 base 29 k
perl-Git noarch 1.7.1-9.el6_9 updates 29 k

Transaction Summary

Install 3 Package(s)

Total download size: 4.7 M
Installed size: 15 M
Downloading Packages:
(1/3): git-1.7.1-9.el6_9.x86_64.rpm | 4.6 MB 00:32
(2/3): perl-Error-0.17015-4.el6.noarch.rpm | 29 kB 00:00
(3/3): perl-Git-1.7.1-9.el6_9.noarch.rpm | 29 kB 00:00

Total 143 kB/s | 4.7 MB 00:33
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : 1:perl-Error-0.17015-4.el6.noarch 1/3
Installing : git-1.7.1-9.el6_9.x86_64 2/3
Installing : perl-Git-1.7.1-9.el6_9.noarch 3/3
Verifying : 1:perl-Error-0.17015-4.el6.noarch 1/3
Verifying : git-1.7.1-9.el6_9.x86_64 2/3
Verifying : perl-Git-1.7.1-9.el6_9.noarch 3/3

Installed:
git.x86_64 0:1.7.1-9.el6_9

Dependency Installed:
perl-Error.noarch 1:0.17015-4.el6 perl-Git.noarch 0:1.7.1-9.el6_9

Complete!
[root@Optimus /]#

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读