CentOS git 설치하기

  다른 뜻에 대해서는 우분투 git 설치 문서를 참조하십시오.
리눅스 Git 설치
CentOS git 설치


1 확인[ | ]

[root@zetawiki ~]# git
-bash: git: command not found

2 설치[ | ]

[root@zetawiki ~]# yum install git
... (생략)
=======================================================================================
 Package                     Arch        Version                    Repository    Size
=======================================================================================
Installing:
 git                         x86_64      1.8.3.1-20.el7             updates      4.4 M
Installing for dependencies:
 perl                        x86_64      4:5.16.3-294.el7_6         updates      8.0 M
 perl-Carp                   noarch      1.26-244.el7               base          19 k
 perl-Encode                 x86_64      2.51-7.el7                 base         1.5 M
 perl-Error                  noarch      1:0.17020-2.el7            base          32 k
 perl-Exporter               noarch      5.68-3.el7                 base          28 k
 perl-File-Path              noarch      2.09-2.el7                 base          26 k
 perl-File-Temp              noarch      0.23.01-3.el7              base          56 k
 perl-Filter                 x86_64      1.49-3.el7                 base          76 k
 perl-Getopt-Long            noarch      2.40-3.el7                 base          56 k
 perl-Git                    noarch      1.8.3.1-20.el7             updates       55 k
 perl-HTTP-Tiny              noarch      0.033-3.el7                base          38 k
 perl-PathTools              x86_64      3.40-5.el7                 base          82 k
 perl-Pod-Escapes            noarch      1:1.04-294.el7_6           updates       51 k
 perl-Pod-Perldoc            noarch      3.20-4.el7                 base          87 k
 perl-Pod-Simple             noarch      1:3.28-4.el7               base         216 k
 perl-Pod-Usage              noarch      1.63-3.el7                 base          27 k
 perl-Scalar-List-Utils      x86_64      1.27-248.el7               base          36 k
 perl-Socket                 x86_64      2.010-4.el7                base          49 k
 perl-Storable               x86_64      2.45-3.el7                 base          77 k
 perl-TermReadKey            x86_64      2.30-20.el7                base          31 k
 perl-Text-ParseWords        noarch      3.29-4.el7                 base          14 k
 perl-Time-HiRes             x86_64      4:1.9725-3.el7             base          45 k
 perl-Time-Local             noarch      1.2300-2.el7               base          24 k
 perl-constant               noarch      1.27-2.el7                 base          19 k
 perl-libs                   x86_64      4:5.16.3-294.el7_6         updates      688 k
 perl-macros                 x86_64      4:5.16.3-294.el7_6         updates       44 k
 perl-parent                 noarch      1:0.225-244.el7            base          12 k
 perl-podlators              noarch      2.5.1-3.el7                base         112 k
 perl-threads                x86_64      1.87-4.el7                 base          49 k
 perl-threads-shared         x86_64      1.43-6.el7                 base          39 k

Transaction Summary
=======================================================================================
Install  1 Package (+30 Dependent packages)

Total download size: 16 M
Installed size: 59 M
Is this ok [y/d/N]: y
... (생략)
Installed:
  git.x86_64 0:1.8.3.1-20.el7

Dependency Installed:
  perl.x86_64 4:5.16.3-294.el7_6               perl-Carp.noarch 0:1.26-244.el7
  perl-Encode.x86_64 0:2.51-7.el7              perl-Error.noarch 1:0.17020-2.el7
  perl-Exporter.noarch 0:5.68-3.el7            perl-File-Path.noarch 0:2.09-2.el7
  perl-File-Temp.noarch 0:0.23.01-3.el7        perl-Filter.x86_64 0:1.49-3.el7
  perl-Getopt-Long.noarch 0:2.40-3.el7         perl-Git.noarch 0:1.8.3.1-20.el7
  perl-HTTP-Tiny.noarch 0:0.033-3.el7          perl-PathTools.x86_64 0:3.40-5.el7
  perl-Pod-Escapes.noarch 1:1.04-294.el7_6     perl-Pod-Perldoc.noarch 0:3.20-4.el7
  perl-Pod-Simple.noarch 1:3.28-4.el7          perl-Pod-Usage.noarch 0:1.63-3.el7
  perl-Scalar-List-Utils.x86_64 0:1.27-248.el7 perl-Socket.x86_64 0:2.010-4.el7
  perl-Storable.x86_64 0:2.45-3.el7            perl-TermReadKey.x86_64 0:2.30-20.el7
  perl-Text-ParseWords.noarch 0:3.29-4.el7     perl-Time-HiRes.x86_64 4:1.9725-3.el7
  perl-Time-Local.noarch 0:1.2300-2.el7        perl-constant.noarch 0:1.27-2.el7
  perl-libs.x86_64 4:5.16.3-294.el7_6          perl-macros.x86_64 4:5.16.3-294.el7_6
  perl-parent.noarch 1:0.225-244.el7           perl-podlators.noarch 0:2.5.1-3.el7
  perl-threads.x86_64 0:1.87-4.el7             perl-threads-shared.x86_64 0:1.43-6.el7

Complete!

3 확인 2[ | ]

[root@zetawiki ~]# git --version
git version 1.8.3.1

4 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}