CentOS安装git
2011-11-19 17:49
351 查看
在 Ubuntu 上安装 Git 非常的简单,只需要:
sudo apt-get install git-core
但是 CentOS 默认的 yum 源中没有 Git,只能下载 RPM 包安装,确保已安装了依赖的包
sudo yum install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel
安装最新的 Git
$ wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
$ tar xzvf git-latest.tar.gz
$ cd git-{date}
$ autoconf
$ ./configure
$ make
$ sudo make install
检查版本
$ git --version
git version 1.7.3.GIT
– EOF –
posted in Unix Linux by Sonic
sudo apt-get install git-core
但是 CentOS 默认的 yum 源中没有 Git,只能下载 RPM 包安装,确保已安装了依赖的包
sudo yum install curl curl-devel zlib-devel openssl-devel perl cpio expat-devel gettext-devel
安装最新的 Git
$ wget http://www.codemonkey.org.uk/projects/git-snapshots/git/git-latest.tar.gz
$ tar xzvf git-latest.tar.gz
$ cd git-{date}
$ autoconf
$ ./configure
$ make
$ sudo make install
检查版本
$ git --version
git version 1.7.3.GIT
– EOF –
posted in Unix Linux by Sonic
相关文章推荐
- CentOS 源码安装Git
- centos下两种方法安装git
- centos下两种方法安装git--转载
- centos 6.3 安装git: Requires: libcurl.so.3
- CentOS 编译安装git,解决github HTTPS 403错误
- centos7.2下编译安装git
- Centos 6.5 源码安装git
- 如何在CentOS 6.x/7.x上安装git及最新版
- CentOS 6.x安装配置GitLab(企业版Git管理)
- 在centos下安装git
- 在centOS 上安装git
- CentOS 下安装 git + node.js
- CentOS 6.2 上安装使用私钥认证的Git服务器
- CentOS 5 上安装git
- CentOS安装GIT
- centos 6.8 安装git 报错
- Centos安装(更新)Git
- centos7 githug安装教程
- CentOS7 编译安装 Git 服务器 Centos 7.0 + Git 2.2.0 + gitosis (实测 笔记)
- centos安装gitblit