何気にrepolistコマンドで出力された結果をみると、ビックリマークが表示されていたので、調べてみました。
メタデータの有効期限が切れている
マンページに記載がありました。
# man yum : (省略) repolist : (省略) In non-verbose mode the first column will start with a ´*´ if the repo. has metalink data and the latest metadata is not local and will start with a ´!´ if the repo. has metadata that is expired. For non-verbose mode the last column will also display the number of packages in the repo. and (if there are any user specified excludes) the number of packages excluded. : (省略)
なので、キャッシュクリアをしてあげればいいです。
「yum clean all」コマンドでもいいですが、ここは、メタデータをクリアしてみます。
# yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile : (省略) repo id repo name status !base/7/armhfp CentOS-7 - Base 7,453 !centos-kernel/7/armhfp CentOS Kernels for armhfp 27 !extras/7/armhfp CentOS-7 - Extras 257 !updates/7/armhfp CentOS-7 - Updates 886 repolist: 8,623 # ls -l /var/cache/yum/armhfp/7/*/cachecookie /var/cache/yum/armhfp/7/*/mirrorlist.txt -rw-r--r--. 1 root root 0 Feb 9 07:40 /var/cache/yum/armhfp/7/base/cachecookie -rw-r--r--. 1 root root 614 Feb 9 07:40 /var/cache/yum/armhfp/7/base/mirrorlist.txt -rw-r--r--. 1 root root 0 Feb 9 07:40 /var/cache/yum/armhfp/7/centos-kernel/cachecookie -rw-r--r--. 1 root root 774 Feb 9 07:40 /var/cache/yum/armhfp/7/centos-kernel/mirrorlist.txt -rw-r--r--. 1 root root 0 Feb 9 07:40 /var/cache/yum/armhfp/7/extras/cachecookie -rw-r--r--. 1 root root 654 Feb 9 07:40 /var/cache/yum/armhfp/7/extras/mirrorlist.txt -rw-r--r--. 1 root root 0 Feb 9 07:40 /var/cache/yum/armhfp/7/updates/cachecookie -rw-r--r--. 1 root root 664 Feb 9 07:40 /var/cache/yum/armhfp/7/updates/mirrorlist.txt # yum clean expire-cache Loaded plugins: fastestmirror Cleaning repos: base centos-kernel extras updates 8 metadata files removed # yum repolist Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile : (省略) base | 3.6 kB 00:00:00 centos-kernel | 2.9 kB 00:00:00 extras | 2.9 kB 00:00:00 updates | 2.9 kB 00:00:00 repo id repo name status base/7/armhfp CentOS-7 - Base 7,453 centos-kernel/7/armhfp CentOS Kernels for armhfp 27 extras/7/armhfp CentOS-7 - Extras 257 updates/7/armhfp CentOS-7 - Updates 886 repolist: 8,623 # ls -l /var/cache/yum/armhfp/7/*/cachecookie /var/cache/yum/armhfp/7/*/mirrorlist.txt -rw-r--r--. 1 root root 0 Feb 9 21:22 /var/cache/yum/armhfp/7/base/cachecookie -rw-r--r--. 1 root root 614 Feb 9 21:22 /var/cache/yum/armhfp/7/base/mirrorlist.txt -rw-r--r--. 1 root root 0 Feb 9 21:22 /var/cache/yum/armhfp/7/centos-kernel/cachecookie -rw-r--r--. 1 root root 774 Feb 9 21:22 /var/cache/yum/armhfp/7/centos-kernel/mirrorlist.txt -rw-r--r--. 1 root root 0 Feb 9 21:22 /var/cache/yum/armhfp/7/extras/cachecookie -rw-r--r--. 1 root root 654 Feb 9 21:22 /var/cache/yum/armhfp/7/extras/mirrorlist.txt -rw-r--r--. 1 root root 0 Feb 9 21:22 /var/cache/yum/armhfp/7/updates/cachecookie -rw-r--r--. 1 root root 664 Feb 9 21:22 /var/cache/yum/armhfp/7/updates/mirrorlist.txt