CentOS 8 - error message: failed to download metadata fro repo AppStream

Error occured when trying to update "yum update" a minimalistic installed CentOS 8 installation.

This happends because CentOS Linux 8 has reached End of Life by end of year 2021.

You have to options now:
1) used different mirror vault.centos.org
2) upgrade to CentOS Stream

Option 1): used different mirror vault.centos.org

- cd /etc/yum.repos.d/
- sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
- sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
- now run: yum update again

Option 2): upgrade to CentOS Stream

- up date to latest CentOS 8: dnf update
- dnf install centos-release-stream -y --allowerasing
- synchronizse installed packages to available stream version: dnf distro-sync
- cat /etc/redhat-release, should show now the Stream relase version

good pages, with more details:
- https://techglimpse.com/failed-metadata-repo-appstream-centos-8/
- https://techglimpse.com/convert-centos8-linux-centosstream/

computer2know :: thank you for your visit :: have a nice day :: © 2022