前提環境 CentOS 6.6, 64bit
CentOS6~の終了でリポジトリ情報
CentOS6~の終了でリポジトリ情報
/etc/yum.repos.d/CentOS-Base.repoの
http://mirrorlist.centos.orgを
http://vault.centos.orgに代替して久しく、未だにCentOS6環境。現在 yum コマンドを使用すると http から https へリダイレクトされ次のエラー。
https://vault.centos.org/6.10/%2A/x86_64/repodata/repomd.xml: [Errno 14] problem making ssl connectionもはやCentOS6~では接続できない。http で接続できる
http://ftp.riken.jp/Linux/centos-vault/ http://ftp.jaist.ac.jp/pub/Linux/CentOS-vault/ http://ftp.iij.ad.jp/pub/linux/centos-vault/等への代替で ok。具体的には...▼
$ sudo diff /etc/yum.repos.d/CentOS-Base.repo.org /etc/yum.repos.d/CentOS-Base.repo
15,16c15 < mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch;=$basearch&repo;=os&infra;=$infra < #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/ --- > baseurl=http://ftp.riken.jp/Linux/centos-vault/6.10/os/$basearch/ 23,24c22 < mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch;=$basearch&repo;=updates&infra;=$infra < #baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/ --- > baseurl=http://ftp.riken.jp/Linux/centos-vault/6.10/updates/$basearch/ 31,32c29 < mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch;=$basearch&repo;=extras&infra;=$infra < #baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/ --- > baseurl=http://ftp.riken.jp/Linux/centos-vault/6.10/extras/$basearch/ 39,40c36 < mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch;=$basearch&repo;=centosplus&infra;=$infra < #baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/ --- > baseurl=http://ftp.riken.jp/Linux/centos-vault/6.10/centosplus/$basearch/ 48,49c44 < mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch;=$basearch&repo;=contrib&infra;=$infra < #baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/ --- > baseurl=http://ftp.riken.jp/Linux/centos-vault/6.10/contrib/$basearch/本題の Git2~ インストール。IUS(Inline with Upstream Stable)リポジトリから CentOS6が無くなり、現時点で可能なのは"wandisco-git"リポジトリ。
$ sudo yum install http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpmで
/etc/yum.repos.d/wandisco-git.repoが登録され
$ sudo yum install gitで git version 2.31.1 をインストール可能。ちなみに CentOS6~のリポジトリを解決せず"wandisco-git"リポジトリだけではPerl関連の依存エラー。