YUM: Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Have you ever ecounter this error “Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast“?
If you are running a server that was not able to connect to an active repository server for weeks, that error will prompt about an outdated repository entries. This can be solved by purging the “yum data”
root@webserver ~]# yum clean all
Loaded plugins: fastestmirror, langpacks
Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
Cleaning repos: base epel extras updates
Cleaning up everything
Cleaning up list of fastest mirrors
SOLVED-Repodata is over 2 weeks old. Install yum-cron? Or run: yum makecache fast
The old repodata warning also gets triggered if you restore from an old server snapshots for those using VPS servers or cloud servers. It is merely a warning that you may not be getting the current version of programs for your webserver.
What is YUM?
YUM (Yellowdog Updater Modified) is an open source command-line as well as graphical based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrator to easily install, update, remove or search software packages on a systems. It was developed and released by Seth Vidal under GPL (General Public License) as an open source, means anyone can allowed to download and access the code to fix bugs and develop customized packages. YUM uses numerous third party repositories to install packages automatically by resolving their dependencies issues.