LoginSignup
0
1

More than 5 years have passed since last update.

CentOS7に最新版のgitを導入してみた

Posted at

最新版のgitの導入方法

yumでインストールすると古いバージョンが導入されてしまうので、最新版をDLしてソースをコンパイルして導入しました。

【参考URL】
git公式HP

手順
# 事前に必要なパッケージを導入しておく
yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-ExtUtils-MakeMaker

# 最新版のgitをダウンロード
wget https://www.kernel.org/pub/software/scm/git/git-2.16.1.tar.gz

tar -zxf git-2.16.1.tar.gz
cd git-2.16.1
make prefix=/usr/local all
make prefix=/usr/local install
git —version
# > git version 2.16.1
0
1
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
0
1