このエントリーをはてなブックマークに追加


パッケージアップデートがあるのにyum updateできない

複数台のCentOSサーバを管理していて、パッケージのアップデートがあるのにyum updateできないサーバが存在したときの対処です。
以下の手順で当方は解決できましたが、みなさんの環境では問題が解決できないかもしれないのでご了承くださいませ。


yum upate で No Packages marked for Update

yum updateで他のCentOSサーバは新しいパッケージにアップデートできたのに一台だけ以下のメッセージが出力されできませんでした。

# yum update
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Skipping security plugin, no data
Setting up Update Process
No Packages marked for Update

yum clean all をしたあとに yum update

yum clean all コマンドを実行したあと、yum updateコマンドを実行したら無事アップデートすることができました。

# yum clean all
Loaded plugins: fastestmirror, security
Cleaning up Everything
Cleaning up list of fastest mirrors
[root@node01 ~]# yum update
Loaded plugins: fastestmirror, security
Determining fastest mirrors
base                                                              | 1.1 kB     00:00     
base/primary                                                      | 1.2 MB     00:00     
base                                                                           3591/3591
extras                                                            | 2.1 kB     00:00     
extras/primary_db                                                 | 179 kB     00:00     
updates                                                           | 1.9 kB     00:00     
updates/primary_db                                                | 717 kB     00:00     
 Skipping security plugin, no data
Setting up Update Process
Resolving Dependencies
Skipping security plugin, no data
--> Running transaction check
---> Package sudo.x86_64 0:1.7.2p1-14.el5_8.2 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

=================================================================================
 Package                Arch       Version              Repository        Size
=================================================================================
Updating:
 sudo                   x86_64    1.7.2p1-14.el5_8.2    updates           359 k
 
Transaction Summary
=================================================================================
Install       0 Package(s)
Upgrade       1 Package(s)

Total download size: 359 k
Is this ok [y/N]: y
Downloading Packages:
sudo-1.7.2p1-14.el5_8.2.x86_64.rpm                            | 359 kB     00:00
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Updating       : sudo                                                      1/2 
  Cleanup        : sudo                                                      2/2 

Updated:
  sudo.x86_64 0:1.7.2p1-14.el5_8.2

Complete!

yum clean all の動作

yum clean all の動作について説明します。 clean allオプションは全てのキャッシュを削除します。
したがって、上記ではyum clean allでサーバ内に保存されている各種情報を削除し、
再度yum updateにて各種情報を再構築したことによりアップデート対象が見つかりyum updateが完了したと思います。

以下に yum clean のオプションについて記します。

yum clean all下記に記すオプションすべてを有効にする(すべてのキャッシュを削除)
yum clean dbcache高速アクセスのためのデーターベースキャッシュを削除
yum clean headersダウンロードしたヘッダファイルを削除
yum clean metadataダウンロードしたメタデータを削除
yum clean packagesダウンロードしたパッケージを削除


トップ   編集 凍結 差分 バックアップ 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2015-03-20 (金) 22:30:16