ホーム > Linux, 開発 > CentOS6.3にgitをインストールする

CentOS6.3にgitをインストールする

CentOS6.3にgitをインストールします。
gitはyumのリポジトリに登録されていますのでyumコマンドで簡単にインストールできます。

# yum update git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.jaist.ac.jp
 * extras: ftp.jaist.ac.jp
 * updates: ftp.jaist.ac.jp
Setting up Update Process
Package(s) git available, but not installed.
No Packages marked for Update
[root@dti-vps-srv112 ~]# yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.jaist.ac.jp
 * extras: ftp.jaist.ac.jp
 * updates: ftp.jaist.ac.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed
--> Processing Dependency: perl-Git = 1.7.1-3.el6_4.1 for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: perl(Git) for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: perl(Error) for package: git-1.7.1-3.el6_4.1.x86_64
--> Processing Dependency: libz.so.1(ZLIB_1.2.0)(64bit) for package: git-1.7.1-3.el6_4.1.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-3.el6_4.1 will be installed
---> Package zlib.i686 0:1.2.3-27.el6 will be updated
---> Package zlib.x86_64 0:1.2.3-27.el6 will be updated
---> Package zlib.i686 0:1.2.3-29.el6 will be an update
---> Package zlib.x86_64 0:1.2.3-29.el6 will be an update
--> Finished Dependency Resolution

Dependencies Resolved

=============================================================================================================================================
 Package                           Arch                          Version                                Repository                      Size
=============================================================================================================================================
Installing:
 git                               x86_64                        1.7.1-3.el6_4.1                        updates                        4.6 M
Installing for dependencies:
 perl-Error                        noarch                        1:0.17015-4.el6                        base                            29 k
 perl-Git                          noarch                        1.7.1-3.el6_4.1                        updates                         28 k
Updating for dependencies:
 zlib                              i686                          1.2.3-29.el6                           base                            73 k
 zlib                              x86_64                        1.2.3-29.el6                           base                            73 k

Transaction Summary
=============================================================================================================================================
Install       3 Package(s)
Upgrade       2 Package(s)

Total download size: 4.8 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): git-1.7.1-3.el6_4.1.x86_64.rpm                                                                                 | 4.6 MB     00:01     
(2/5): perl-Error-0.17015-4.el6.noarch.rpm                                                                            |  29 kB     00:00     
(3/5): perl-Git-1.7.1-3.el6_4.1.noarch.rpm                                                                            |  28 kB     00:00     
(4/5): zlib-1.2.3-29.el6.i686.rpm                                                                                     |  73 kB     00:00     
(5/5): zlib-1.2.3-29.el6.x86_64.rpm                                                                                   |  73 kB     00:00     
---------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                        3.1 MB/s | 4.8 MB     00:01     
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:perl-Error-0.17015-4.el6.noarch                                                                                         1/7 
  Updating   : zlib-1.2.3-29.el6.x86_64                                                                                                  2/7 
  Installing : perl-Git-1.7.1-3.el6_4.1.noarch                                                                                           3/7 
  Installing : git-1.7.1-3.el6_4.1.x86_64                                                                                                4/7 
  Updating   : zlib-1.2.3-29.el6.i686                                                                                                    5/7 
  Cleanup    : zlib-1.2.3-27.el6                                                                                                         6/7 
  Cleanup    : zlib-1.2.3-27.el6                                                                                                         7/7 
  Verifying  : 1:perl-Error-0.17015-4.el6.noarch                                                                                         1/7 
  Verifying  : perl-Git-1.7.1-3.el6_4.1.noarch                                                                                           2/7 
  Verifying  : zlib-1.2.3-29.el6.i686                                                                                                    3/7 
  Verifying  : zlib-1.2.3-29.el6.x86_64                                                                                                  4/7 
  Verifying  : git-1.7.1-3.el6_4.1.x86_64                                                                                                5/7 
  Verifying  : zlib-1.2.3-27.el6.x86_64                                                                                                  6/7 
  Verifying  : zlib-1.2.3-27.el6.i686                                                                                                    7/7 

Installed:
  git.x86_64 0:1.7.1-3.el6_4.1                                                                                                               

Dependency Installed:
  perl-Error.noarch 1:0.17015-4.el6                                     perl-Git.noarch 0:1.7.1-3.el6_4.1                                    

Dependency Updated:
  zlib.i686 0:1.2.3-29.el6                                             zlib.x86_64 0:1.2.3-29.el6                                            

Complete!
# 

ソースからコンパイルする場合は、以下を参考にしてください。

■参考サイト

>CentOS6.3にgitをソースコードから入れる


カテゴリー: Linux, 開発 タグ: , ,
  1. コメントはまだありません。
  1. トラックバックはまだありません。
*