LinuxMoz

Linux Stuff && Coffee

CentOS Install Git

| Comments

To install git on CentOS 6 simply use the following yum command.

CentOS 6 Install Git using YUM

Enter the following as root:

1
yum install git

This will give you an output similar to the following:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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: openssh-clients for package: git-1.7.1-2.el6_0.1.x86_64
--> Running transaction check
---> Package openssh-clients.x86_64 0:5.3p1-81.el6 will be installed
---> Package perl-Git.noarch 0:1.7.1-2.el6_0.1 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

===================================================================================
 Package                 Arch           Version                 Repository    Size
===================================================================================
Installing:
 git                     x86_64         1.7.1-2.el6_0.1         base         4.6 M
Installing for dependencies:
 openssh-clients         x86_64         5.3p1-81.el6            base         358 k
 perl-Git                noarch         1.7.1-2.el6_0.1         base          28 k

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

Total download size: 5.0 M
Installed size: 16 M
Is this ok [y/N]: y

Comments