yum コマンドを利用すると、
[html]Error: database disk image is malformed [/html]
エラーが出る場合があります。この時は迷わず、
[html]# yum clean all[/html]
でyum のキャッシュを消してあげましょう。
ちなみに、以下のエラーの場合は、
[html]# yum install xxxxx
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Could not retrieve mirrorlist http://mirrorlist.centos.org/?release=5&arch=i386&repo=os error was
[Errno 4] IOError: <urlopen error (-3, ‘\xe5\x90\x8d\xe5\x89\x8d\xe8\xa7\xa3\xe6\xb1\xba\xe6\x99\x82\xe3\x81\xae\xe4\xb8\x80\xe6\x99\x82\xe7\x9a\x84\xe3\x81\xaa\xe5\xa4\xb1\xe6\x95\x97’)>
[/html]
以下のような場合に出ます。適切な対応をします。
・ネットワークが繋がっていない。 → ネットワークをつなげましょう。
・名前解決が出来ていない。 → resolve.conf等でDNSの設定をしましょう。
・レポジトリの中途半端なキャッシュや破損がある。 → yum clean all で対応。 それでも駄目ならyumの入れ直しを。