Howto install GIT on Centos 6.3 Redhat RHEL Fedora 17-18

Howto install GIT on Centos 6.3 Redhat RHEL Fedora 17-18

1. Install GIT

[root@localhost bin]# yum install git
Loaded plugins: fastestmirror, refresh-packagekit, security
Loading mirror speeds from cached hostfile
epel/metalink | 4.6 kB 00:00
* base: ossm.utm.my
* epel: ftp.cuhk.edu.hk
* extras: ossm.utm.my
* rpmforge: mirror.oscc.org.my
* updates: ossm.utm.my
base | 3.7 kB 00:00
extras | 3.5 kB 00:00
rpmforge | 1.9 kB 00:00
updates | 3.5 kB 00:00
http://ossm.utm.my/centos/6.3/updates/x86_64/repodata/e34cec599a6305053c94d86a583cd0f3505c13f79a485341608e5f2bc53cb1ac-primary.sqlite.bz2: [Errno 12] Timeout on http://ossm.utm.my/centos/6.3/updates/x86_64/repodata/e34cec599a6305053c94d86a583cd0f3505c13f79a485341608e5f2bc53cb1ac-primary.sqlite.bz2: (28, ‘Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds’)
Trying other mirror.
updates/primary_db | 4.7 MB 00:40
Setting up Install Process
Resolving Dependencies
–> Running transaction check
—> Package git.x86_64 0:1.7.1-2.el6_0.1 will be installed
–> Processing Dependency: perl-Git = 1.7.1-2.el6_0.1 for package: git-1.7.1-2.el6_0.1.x86_64
–> Processing Dependency: perl(Git) for package: git-1.7.1-2.el6_0.1.x86_64
–> Processing Dependency: perl(Error) for package: git-1.7.1-2.el6_0.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-2.el6_0.1 will be installed
–> Finished Dependency ResolutionDependencies Resolved=====================================================================================================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================================================================================================
Installing:
git x86_64 1.7.1-2.el6_0.1 base 4.6 M
Installing for dependencies:
perl-Error noarch 1:0.17015-4.el6 base 29 k
perl-Git noarch 1.7.1-2.el6_0.1 base 28 k

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

Total download size: 4.7 M
Installed size: 15 M
Is this ok [y/N]: y
Downloading Packages:
http://ossm.utm.my/centos/6.3/os/x86_64/Packages/git-1.7.1-2.el6_0.1.x86_64.rpm: [Errno 12] Timeout on http://ossm.utm.my/centos/6.3/os/x86_64/Packages/git-1.7.1-2.el6_0.1.x86_64.rpm: (28, ‘Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds’)
Trying other mirror.
(1/3): git-1.7.1-2.el6_0.1.x86_64.rpm | 4.6 MB 00:20
(2/3): perl-Error-0.17015-4.el6.noarch.rpm | 29 kB 00:00
(3/3): perl-Git-1.7.1-2.el6_0.1.noarch.rpm | 28 kB 00:00
—————————————————————————————————————————————————————————————————–
Total 83 kB/s | 4.7 MB 00:57
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-2.el6_0.1.x86_64 2/3
Installing : perl-Git-1.7.1-2.el6_0.1.noarch 3/3
Verifying : perl-Git-1.7.1-2.el6_0.1.noarch 1/3
Verifying : git-1.7.1-2.el6_0.1.x86_64 2/3
Verifying : 1:perl-Error-0.17015-4.el6.noarch 3/3

Installed:
git.x86_64 0:1.7.1-2.el6_0.1

Dependency Installed:
perl-Error.noarch 1:0.17015-4.el6 perl-Git.noarch 0:1.7.1-2.el6_0.1

Complete!
[root@localhost bin]#

2. Test Git by downloading software from Internet

[root@localhost /]# git clone –depth 1 git://git.sip-router.org/sip-router kamailio
Initialized empty Git repository in /kamailio/.git/
remote: Counting objects: 29126, done.
remote: Compressing objects: 100% (16550/16550), done.
remote: Total 29126 (delta 21154), reused 18556 (delta 12192)
Receiving objects: 100% (29126/29126), 19.00 MiB | 49 KiB/s, done.
Resolving deltas: 100% (21154/21154), done.
[root@localhost /]#

That’s all. Thanks for using IThelpblog.com.

 

Leave a reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>