yumであっさりはいるかと思ったらリポジトリの追加が必要でした。
以下作業めもです。
root@vagrant-c5-x86_64 vagrant]# cat /etc/redhat-release
CentOS release 5.9 (Final)
[root@vagrant-c5-x86_64 vagrant]#
[root@vagrant-c5-x86_64 vagrant]#
[root@vagrant-c5-x86_64 vagrant]# su
[root@vagrant-c5-x86_64 vagrant]# yum install git
Loaded plugins: fastestmirror
Determining fastest mirrors
* base: mirrors.sin3.sg.voxel.net
* extras: mirrors.sin3.sg.voxel.net
* updates: mirrors.sin3.sg.voxel.net
base | 1.1 kB 00:00
extras | 2.1 kB 00:00
extras/primary_db | 188 kB 00:02
puppet | 1.9 kB 00:00
puppet/primary_db | 79 kB 00:00
updates | 1.9 kB 00:00
updates/primary_db | 398 kB 00:02
Setting up Install Process
No package git available.
Nothing to do
root@vagrant-c5-x86_64 vagrant]# wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.2-2.el5.rf.i386.rpm(省略)
2013-05-21 23:20:55 (10.3 KB/s) - `rpmforge-release-0.5.2-2.el5.rf.i386.rpm' へ保存完了 [12680/12680]
[root@vagrant-c5-x86_64 vagrant]# ls -l
合計 20
- rw-r--r-- 1 root root 12680 11月 13 2010 rpmforge-release-0.5.2-2.el5.rf.i386.rpm
[root@vagrant-c5-x86_64 vagrant]# rpm -Uvh rpmforge-release-0.5.2-2.el5.rf.i386.rpm
警告: rpmforge-release-0.5.2-2.el5.rf.i386.rpm: ヘッダ V3 DSA signature: NOKEY, key ID 6b8d79e6
準備中... ########################################### [100%]
1:rpmforge-release ########################################### [100%]
[root@vagrant-c5-x86_64 vagrant]# yum install git
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirrors.sin3.sg.voxel.net
* extras: mirrors.sin3.sg.voxel.net
* rpmforge: ftp.riken.jp
* updates: mirrors.sin3.sg.voxel.net
rpmforge | 1.9 kB 00:00
rpmforge/primary_db | 7.0 MB 00:11
Setting up Install Process
Resolving Dependencies
(省略)
Total
unning rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : perl 1/13
Installing : apr 2/13
Installing : perl-DBI 3/13
Installing : neon 4/13
Installing : postgresql-libs 5/13
Installing : apr-util 6/13
Installing : rsync 7/13
Installing : perl-YAML 8/13
Installing : perl-URI 9/13
Installing : subversion 10/13
Installing : subversion-perl 11/13
Installing : perl-Git 12/13
Installing : git 13/13
Installed:
git.x86_64 0:1.7.11.3-1.el5.rf
Dependency Installed:
apr.x86_64 0:1.2.7-11.el5_6.5 apr-util.x86_64 0:1.2.7-11.el5_5.2 neon.x86_64 0:0.25.5-10.el5_4.1 perl.x86_64 4:5.8.8-40.el5_9 perl-DBI.x86_64 0:1.52-2.el5
perl-Git.x86_64 0:1.7.11.3-1.el5.rf perl-URI.noarch 0:1.35-3 perl-YAML.noarch 0:0.72-1.el5.rf postgresql-libs.x86_64 0:8.1.23-6.el5_8 rsync.x86_64 0:3.0.6-4.el5_7.1
subversion.x86_64 0:1.6.11-11.el5_9 subversion-perl.x86_64 0:1.6.11-11.el5_9
Complete!
[root@vagrant-c5-x86_64 vagrant]#
下記記事がとても参考になりました!
ありがとうございます!
参考サイト
CentOS5.8にgitをインストールするまでにはまったこと
http://futabooo.hatenablog.com/entry/2013/01/12/190048