LoginSignup
1
2

More than 5 years have passed since last update.

CentOS6.xにyumで最新のgitをインストール

Posted at

CentOS6.xだとgitは標準でインストールされていますが、かなり古いです。

Gitのバージョン確認
# git --version
git version 1.7.1

なので最新をインストールしたいとこですが、普通にyumするだけではダメなので下記手順を実行します。
まずは、古いgitをアンインストール。

Gitをアンインストール
# yum remove git

次に、wingリポジトリを登録。

wingリポジトリを登録
# cd /etc/yum.repos.d/
# wget http://wing-repo.net/wing/6/EL6.wing.repo

最後に、wingリポジトリを有効にするオプションを付けながらyumを実行します。

最新Gitのインストール
# yum --enablerepo=wing install git

これで最新のgitがインストールされたはずです。

Gitのバージョン確認
# git --version
git version 2.7.2
1
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2