TecMint published a quick tutorial about how to fix "Failed to Download Metadata for Repo ‘AppStream’" error in CentOS 8.
Fix Error: Failed to Download Metadata for Repo 'AppStream'
For one reason or the other, are still actively using CentOS 8, you might probably have encountered Error: Failed to download metadata for repo ‘appstream'.