LoginSignup
1
2

More than 5 years have passed since last update.

CentOS 6.8 で yum update

Posted at
CentOS 6.8はvault.centos.orgを参照してもyum updateが失敗します
参照先をみてみるとSourceしかありませんね

vault.png


ならば、問題なさそうなミラーサイトを参照するようにBaseリポジトリを書き換えましょう
(今回はIIJを参照するようにしてみました)

iij.png


6.7までと同じように書き換えて…
$ sudo sed -i -e "s|mirror\.centos\.org/|ftp\.iij\.ad\.jp/pub/linux/|g" /etc/yum.repos.d/CentOS-Base.repo
$ sudo sed -i -e "s|#baseurl=|baseurl=|g" /etc/yum.repos.d/CentOS-Base.repo
$ sudo sed -i -e "s|mirrorlist=|#mirrorlist=|g" /etc/yum.repos.d/CentOS-Base.repo


yum update
読み込んだプラグイン:fastestmirror
更新処理の設定をしています
Determining fastest mirrors
base                                                     | 3.7 kB     00:00
base/primary_db                                          | 4.7 MB     00:00
extras                                                   | 3.4 kB     00:00
extras/primary_db                                        |  37 kB     00:00
updates                                                  | 3.4 kB     00:00
updates/primary_db                                       | 4.3 MB     00:00
依存性の解決をしています
--> トランザクションの確認を実行しています。

参考
[1] http://luozengbin.github.io/blog/2015-08-29-%5Btips%5D%5Blinux%5D%E6%97%A7%E3%83%90%E3%83%BC%E3%82%B8%E3%83%A7%E3%83%B3centos%E3%81%A7yum%E6%9B%B4%E6%96%B0%E3%81%A7%E3%81%8D%E3%81%AA%E3%81%8F%E3%81%AA%E3%81%A3%E3%81%9F%E6%99%82.html

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