Solved: Repodata is over 2 weeks old ?
Today we will look one of the most common error message.
Lets have a look at the error message and its solution.
I. Error Message
[user@ngelinux001 ~]$ yum search nvidia Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify, : versionlock Loading support for Red Hat kernel ABI Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast ==================================================== N/S matched: nvidia ===================================================== nvidia-kmod.x86_64 : NVIDIA driver kernel modules pcp-pmda-nvidia-gpu.x86_64 : Performance Co-Pilot (PCP) metrics for the Nvidia GPU xorg-x11-drv-nvidia.x86_64 : NVIDIA's proprietary display driver for NVIDIA graphic cards xorg-x11-drv-nvidia-devel.x86_64 : Development files for xorg-x11-drv-nvidia xorg-x11-drv-nvidia-gl.x86_64 : GL libraries for xorg-x11-drv-nvidia xorg-x11-drv-nvidia-libs.x86_64 : Libraries for xorg-x11-drv-nvidia xorg-x11-drv-nouveau.x86_64 : Xorg X11 nouveau video driver for NVIDIA graphics chipsets Name and summary matches only, use "search all" for everything. [user@ngelinux001 ~]$ yum search all | grep -i nvidia Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
II. Solution
[user@ngelinux001 ~]$ yum makecache fast Loaded plugins: aliases, changelog, kabi, langpacks, product-id, search-disabled-repos, subscription-manager, tmprepo, verify, : versionlock Loading support for Red Hat kernel ABI Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast cuda-9-0-local | 2.5 kB 00:00:00 rh7-server-extras-rpms | 2.9 kB 00:00:00 rh7-updates-Workstation | 3.0 kB 00:00:00 rh7-updates-Workstation-optional | 2.9 kB 00:00:00 rh7-updates-Workstation/primary_db | 60 MB 00:00:00 Metadata Cache Created [user@ngelinux001 ~]$
III. Trick if that also does not work
In case this trick also does not work, then we can remove the complete yum cache and let it create again.
# rm -rf /var/cache/yum/* # Now run yum repolist to get it created again. # yum repolist