0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

最新版のGitインストール方法メモ(Ubuntu14.04)

Last updated at Posted at 2018-01-28

はじめにGitをパッケージインストールしてGitのソースをcloneしておく。
こうしておけば今後のアップデートはgit pullでmakeするだけでOK。

まずはパッケージからインストール。

$ apt-get install git
$ git --version
git version 1.9.1

依存モジュールのインストール。

$ apt-get install libcurl4-gnutls-dev libexpat1-dev libssl-dev gettext

Gitからソースを落としてきてビルド。

$ cd /usr/local/src
$ git clone git://git.kernel.org/pub/scm/git/git.git
$ cd git
$ make prefix=/usr/local/ all
$ make prefix=/usr/local/ install

パッケージからインストールしたGitの削除。

$ apt-get purge git

再ログインしてからコマンド実行。

$ git --version
git version 2.16.1.72.g5be1f00
0
0
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
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?