---
title: "CentOs6.5安装git"
author: "stephen830"
date: "2014-12-04T18:36:16Z"
tags: []
categories: ["操作系统"]
slug: "centos6-5-git"
draft: false
lastmod: "2014-12-04T18:36:16Z"
id: 2163329
url: "https://stephen830.iteye.com/blog/2163329"
---

CentOs6.5 默认安装的是git 1.7.1版本

yum install git

 

CentOS中yum里没有Git，需要手动安装。

首先需要安装git的依赖包

Shell代码  [![收藏代码](http://lwg2001s.iteye.com/images/icon_star.png)]()

1. yum install curl
2. yum install curl-devel
3. yum install zlib-devel
4. yum install openssl-devel
5. yum install perl
6. yum install cpio
7. yum install expat-devel
8. yum install gettext-devel

 

下载最新的git包