11
11

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.

【Linux】CentOSにgitインストール方法

Posted at

yum

  • yumでgit レポジトリがないため手動で追加しアップデートする

参照リポジトリを追加する

  • /etc/yum.repos.d/rpmforge.repo
  • 以下の内容を作成
[rpmforge]
name = Red Hat Enterprise $releasever - RPMforge.net - dag
\#baseurl = http://apt.sw.be/redhat/el5/en/$basearch/dag
mirrorlist = http://apt.sw.be/redhat/el5/en/mirrors-rpmforge
\#mirrorlist = file:///etc/yum.repos.d/mirrors-rpmforge
enabled = 0
protect = 0
gpgkey = file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmforge-dag
gpgcheck = 1
  • 以下のコマンドを実行することでgitをインストール

yum install git --enablerepo=rpmforge

11
11
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
11
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?