yum

Table of Contents

yum

security update


# アップデート対象の情報を確認
$ sudo yum updateinfo security

# アップデートを行う
$ sudo yum update --security

古いOSのリポジトリを変更する

http://d.hatena.ne.jp/tmatsuu/20120324/1332578375

< #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
< #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/seurl=http://vault.centos.org/4.9/os/$basearch/
< baseurl=http://vault.centos.org/5.5/os/$basearch/
---
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
> #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
24c23
< #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
---
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
26d24
< baseurl=http://vault.centos.org/5.5/updates/$basearch/
33c31
< #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
---
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
35d32
< baseurl=http://vault.centos.org/5.5/addons/$basearch/
42c39
< #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
---
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
44d40
< baseurl=http://vault.centos.org/5.5/extras/$basearch/
51c47
< #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
---
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
53d48
< baseurl=http://vault.centos.org/5.5/centosplus/$basearch/
61c56
< #mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
---
> mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
63d57
< baseurl=http://vault.centos.org/5.5/contrib/$basearch/


"filelists.sqlite.bz2 not found" とエラーメッセージが出るので下記を実施 yum clean all

Validate