In this tutorials we learn how to install git in CentOS 6.5 with help of yum command:
Requirement:
CentOS 6.5
Internet connectivity
Root level access
Basic knowledge of Unix command
Let's start
[root@vagrant-centos65 vagrant]# yum install git-all
Loaded plugins: fastestmirror, versionlock
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: centos.mirroring.pulsant.co.uk
* epel: mir01.syntis.net
* extras: anorien.csc.warwick.ac.uk
* updates: centos.serverspace.co.uk
Resolving Dependencies
--> Running transaction check
---> Package git-all.noarch 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-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: gitk = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git-svn = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git-gui = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git-email = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git-cvs = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: git = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Processing Dependency: emacs-git = 1.7.1-3.el6_4.1 for package: git-all-1.7.1-3.el6_4.1.noarch
--> Running transaction check
---> Package emacs-git.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package git.x86_64 0:1.7.1-3.el6_4.1 will be installed
---> Package git-cvs.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package git-email.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package git-gui.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package git-svn.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package gitk.noarch 0:1.7.1-3.el6_4.1 will be installed
---> Package perl-Git.noarch 0:1.7.1-3.el6_4.1 will be installed
--> Finished Dependency Resolution
Dependencies Resolved
======================================================================================================================================================
Package Arch Version Repository Size
======================================================================================================================================================
Installing:
git-all noarch 1.7.1-3.el6_4.1 base 16 k
Installing for dependencies:
emacs-git noarch 1.7.1-3.el6_4.1 base 40 k
git x86_64 1.7.1-3.el6_4.1 base 4.6 M
git-cvs noarch 1.7.1-3.el6_4.1 base 84 k
git-email noarch 1.7.1-3.el6_4.1 base 41 k
git-gui noarch 1.7.1-3.el6_4.1 base 216 k
git-svn noarch 1.7.1-3.el6_4.1 base 95 k
gitk noarch 1.7.1-3.el6_4.1 base 132 k
perl-Git noarch 1.7.1-3.el6_4.1 base 28 k
Transaction Summary
======================================================================================================================================================
Install 9 Package(s)
Total download size: 5.2 M
Installed size: 17 M
Is this ok [y/N]: y
Downloading Packages:
(1/9): emacs-git-1.7.1-3.el6_4.1.noarch.rpm | 40 kB 00:00
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (2%) 2% [= ] 0.0 B/s | 109 kB --:-- ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (5%) 5% [==- ] 228 kB/s | 255 kB 00:19 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (9%) 9% [====- ] 258 kB/s | 471 kB 00:16 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (12%) 13% [======- ] 279 kB/s | 656 kB 00:14 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (16%) 17% [======== ] 296 kB/s | 826 kB 00:13 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (19%) 20% [=========- ] 310 kB/s | 986 kB 00:12 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (22%) 24% [===========- ] 327 kB/s | 1.1 MB 00:10 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (25%) 27% [============= ] 338 kB/s | 1.3 MB 00:10 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (28%) 31% [==============- ] 353 kB/s | 1.5 MB 00:09 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (32%) 35% [================- ] 368 kB/s | 1.6 MB 00:08 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (35%) 39% [================== ] 379 kB/s | 1.8 MB 00:07 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (38%) 42% [==================== ] 392 kB/s | 2.0 MB 00:06 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (41%) 46% [====================== ] 404 kB/s | 2.2 MB 00:06 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (45%) 50% [=======================- ] 416 kB/s | 2.3 MB 00:05 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (47%) 52% [========================- ] 411 kB/s | 2.4 MB 00:05 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (50%) 56% [==========================- ] 421 kB/s | 2.6 MB 00:04 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (53%) 60% [============================ ] 431 kB/s | 2.8 MB 00:04 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (56%) 63% [============================== ] 440 kB/s | 2.9 MB 00:03 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (60%) 67% [===============================- ] 450 kB/s | 3.1 MB 00:03 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (63%) 71% [=================================- ] 458 kB/s | 3.3 MB 00:02 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (67%) 75% [=================================== ] 467 kB/s | 3.5 MB 00:02 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (69%) 78% [====================================- ] 469 kB/s | 3.6 MB 00:02 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (73%) 82% [======================================- ] 476 kB/s | 3.8 MB 00:01 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (76%) 86% [======================================== ] 481 kB/s | 4.0 MB 00:01 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (79%) 89% [========================================== ] 484 kB/s | 4.1 MB 00:01 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (81%) 91% [==========================================- ] 472 kB/s | 4.2 MB 00:00 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (84%) 95% [============================================= ] 484 kB/s | 4.4 MB 00:00 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm (87%) 99% [==============================================-] 487 kB/s | 4.6 MB 00:00 ETA
(2/9): git-1.7.1-3.el6_4.1.x86_64.rpm | 4.6 MB 00:08
(3/9): git-all-1.7.1-3.el6_4.1.noarch.rpm | 16 kB 00:00
(4/9): git-cvs-1.7.1-3.el6_4.1.noarch.rpm | 84 kB 00:00
(5/9): git-email-1.7.1-3.el6_4.1.noarch.rpm | 41 kB 00:00
(6/9): git-gui-1.7.1-3.el6_4.1.noarch.rpm (92%) 41% [=================== ] 0.0 B/s | 89 kB --:-- ETA
(6/9): git-gui-1.7.1-3.el6_4.1.noarch.rpm (95%) 97% [=============================================- ] 118 kB/s | 210 kB 00:00 ETA
(6/9): git-gui-1.7.1-3.el6_4.1.noarch.rpm (95%) 99% [==============================================-] 111 kB/s | 214 kB 00:00 ETA
(6/9): git-gui-1.7.1-3.el6_4.1.noarch.rpm | 216 kB 00:01
(7/9): git-svn-1.7.1-3.el6_4.1.noarch.rpm (96%) 89% [========================================== ] 0.0 B/s | 85 kB --:-- ETA
(7/9): git-svn-1.7.1-3.el6_4.1.noarch.rpm | 95 kB 00:00
(8/9): gitk-1.7.1-3.el6_4.1.noarch.rpm (98%) 77% [==================================== ] 0.0 B/s | 102 kB --:-- ETA
(8/9): gitk-1.7.1-3.el6_4.1.noarch.rpm | 132 kB 00:00
(9/9): perl-Git-1.7.1-3.el6_4.1.noarch.rpm | 28 kB 00:00
------------------------------------------------------------------------------------------------------------------------------------------------------
Total 295 kB/s | 5.2 MB 00:18
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : git-1.7.1-3.el6_4.1.x86_64 1/9
Installing : perl-Git-1.7.1-3.el6_4.1.noarch 2/9
Installing : gitk-1.7.1-3.el6_4.1.noarch 3/9
Installing : git-gui-1.7.1-3.el6_4.1.noarch 4/9
Installing : git-svn-1.7.1-3.el6_4.1.noarch 5/9
Installing : git-email-1.7.1-3.el6_4.1.noarch 6/9
Installing : git-cvs-1.7.1-3.el6_4.1.noarch 7/9
Installing : emacs-git-1.7.1-3.el6_4.1.noarch 8/9
Installing : git-all-1.7.1-3.el6_4.1.noarch 9/9
Verifying : perl-Git-1.7.1-3.el6_4.1.noarch 1/9
Verifying : git-svn-1.7.1-3.el6_4.1.noarch 2/9
Verifying : git-email-1.7.1-3.el6_4.1.noarch 3/9
Verifying : git-gui-1.7.1-3.el6_4.1.noarch 4/9
Verifying : emacs-git-1.7.1-3.el6_4.1.noarch 5/9
Verifying : git-1.7.1-3.el6_4.1.x86_64 6/9
Verifying : gitk-1.7.1-3.el6_4.1.noarch 7/9
Verifying : git-cvs-1.7.1-3.el6_4.1.noarch 8/9
Verifying : git-all-1.7.1-3.el6_4.1.noarch 9/9
Installed:
git-all.noarch 0:1.7.1-3.el6_4.1
Dependency Installed:
emacs-git.noarch 0:1.7.1-3.el6_4.1 git.x86_64 0:1.7.1-3.el6_4.1 git-cvs.noarch 0:1.7.1-3.el6_4.1 git-email.noarch 0:1.7.1-3.el6_4.1
git-gui.noarch 0:1.7.1-3.el6_4.1 git-svn.noarch 0:1.7.1-3.el6_4.1 gitk.noarch 0:1.7.1-3.el6_4.1 perl-Git.noarch 0:1.7.1-3.el6_4.1
Complete!
[root@vagrant-centos65 vagrant]#
Reference: git
No comments:
Post a Comment