centos yum update not working
yum is not updating any packages
I encountered an issue on my CentOS 8 server while trying to update the system using 'yum update' or install a package. The error message displayed is 'Failed to download metadata for repo.
CentOS Linux 8 had reached the End Of Life on December 31st, 2021. that’s means CentOS 8 will no longer receive development resources from the official CentOS project.
After Dec 31st, 2021, if you need to update your CentOS, you need to change the mirrors to vault.centos.org where they will be archived permanently.
So Follow my Step to solve this error.