読者です 読者をやめる 読者になる 読者になる

gitのインストール

[root@centOS tmp]# cd /etc/yum.repos.d/
[root@centOS yum.repos.d]# ls
CentOS-Base.repo  CentOS-Media.repo  kbsingh-CentOS-Extras.repo  mirrors-rpmforge  rpmforge.repo  thirdparties.repo
[root@centOS yum.repos.d]# ll
合計 48
-rw-r--r-- 1 root root 2371  4月  9  2007 CentOS-Base.repo
-rw-r--r-- 1 root root  622  4月  9  2007 CentOS-Media.repo
-rw-r--r-- 1 root root  617  9月  6  2007 kbsingh-CentOS-Extras.repo
-rw-r--r-- 1 root root  684  3月  9  2007 mirrors-rpmforge
-rw-r--r-- 1 root root  426  9月  6  2007 rpmforge.repo
-rw-r--r-- 1 root root  205  9月  6  2007 thirdparties.repo
[root@centOS yum.repos.d]# cp -p CentOS-Base.repo CentOS-Base.repo.20090426
[root@centOS yum.repos.d]# vi CentOS-Base.repo

[dag]
name=Dag RPM Repository for Redhat EL5
baseurl=http://apt.sw.be/redhat/el$releasever/en/$basearch/dag
gpgcheck=1
enabled=1
gpgkey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt

[root@centOS yum.repos.d]# yum install git
Loading "installonlyn" plugin
Loading "downloadonly" plugin
Loading "fastestmirror" plugin
Setting up Install Process
Setting up repositories
dag                       100% |=========================| 1.1 kB    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 3.1 MB    00:05
dag       : ################################################## 8531/8531
Added 8531 new packages, deleted 0 old in 29.24 seconds
Parsing package install arguments
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for git to pack into transaction set.
git-1.5.2.1-1.el5.rf.i386 100% |=========================|  54 kB    00:00
---> Package git.i386 0:1.5.2.1-1.el5.rf set to be updated
--> Running transaction check
--> Processing Dependency: perl(Git) for package: git
--> Processing Dependency: perl(SVN::Core) for package: git
--> Processing Dependency: perl(SVN::Delta) for package: git
--> Processing Dependency: perl(SVN::Ra) for package: git
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-Git to pack into transaction set.
perl-Git-1.5.2.1-1.el5.rf 100% |=========================| 2.8 kB    00:00
---> Package perl-Git.i386 0:1.5.2.1-1.el5.rf set to be updated
---> Downloading header for subversion-perl to pack into transaction set.
subversion-perl-1.5.6-0.2 100% |=========================|  11 kB    00:00
---> Package subversion-perl.i386 0:1.5.6-0.2.el5.rf set to be updated
--> Running transaction check
--> Processing Dependency: perl(Error) for package: perl-Git
--> Processing Dependency: subversion = 1.5.6-0.2.el5.rf for package: subversion-perl
--> Restarting Dependency Resolution with new changes.
--> Populating transaction set with selected packages. Please wait.
---> Downloading header for perl-Error to pack into transaction set.
perl-Error-0.17015-1.el5. 100% |=========================| 5.3 kB    00:00
---> Package perl-Error.noarch 0:0.17015-1.el5.rf set to be updated
---> Downloading header for subversion to pack into transaction set.
subversion-1.5.6-0.2.el5. 100% |=========================|  58 kB    00:01
---> Package subversion.i386 0:1.5.6-0.2.el5.rf set to be updated
--> Running transaction check

Dependencies Resolved

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 git                     i386       1.5.2.1-1.el5.rf  dag                27 M
Installing for dependencies:
 perl-Error              noarch     0.17015-1.el5.rf  dag                27 k
 perl-Git                i386       1.5.2.1-1.el5.rf  dag                18 k
 subversion-perl         i386       1.5.6-0.2.el5.rf  dag               2.1 M
Updating for dependencies:
 subversion              i386       1.5.6-0.2.el5.rf  dag               5.5 M

Transaction Summary
=============================================================================
Install      4 Package(s)
Update       1 Package(s)
Remove       0 Package(s)

Total download size: 35 M
Is this ok [y/N]: y
Downloading Packages:
(1/5): perl-Git-1.5.2.1-1 100% |=========================|  18 kB    00:00
(2/5): subversion-perl-1. 100% |=========================| 2.1 MB    00:03
(3/5): perl-Error-0.17015 100% |=========================|  27 kB    00:00
(4/5): git-1.5.2.1-1.el5. 100% |=========================|  27 MB    01:41
(5/5): subversion-1.5.6-0 100% |=========================| 5.5 MB    00:05
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating  : subversion                   ######################### [1/6]
  Installing: subversion-perl              ######################### [2/6]
  Installing: perl-Error                   ######################### [3/6]
  Installing: git                          ######################### [4/6]
  Installing: perl-Git                     ######################### [5/6]
  Cleanup   : subversion                   ######################### [6/6]

Installed: git.i386 0:1.5.2.1-1.el5.rf
Dependency Installed: perl-Error.noarch 0:0.17015-1.el5.rf perl-Git.i386 0:1.5.2.1-1.el5.rf subversion-perl.i386 0:1.5.6-0.2.el5.rf
Dependency Updated: subversion.i386 0:1.5.6-0.2.el5.rf
Complete!