Score:1

How to update CentOS 8?

th flag

yum --v update on a Fresh install of CentOS 8 at AWS, I get:

Error: Failed to download metadata for repo 'AppStream': Cannot prepare internal mirrorlist: No URLs in mirrorlist

A bit of reading shows that CentOS 8 appears to becoming CentOS Stream 8, and all the mirrors are showing that the product is end-of-life: http://mirror.centos.org/centos-8/8/readme

If I open up /etc/yum.repos.d/CentOS-AppStream.repo the url referenced there resolves to: http://mirrorlist.centos.org/?release=8&arch=x86_64&repo=AppStream&infra=ec2 and that appears to be the cause of the issue above. As it says

'Invalid release/repo/arch combination'

What to do? Is CentOS 7 my only option. I cant find any "CentOS Stream 8" images in AWS.

in flag
Does this answer your question? [CentOS 7 - end of life in 2024, then what](https://serverfault.com/questions/1080911/centos-7-end-of-life-in-2024-then-what)
Score:1
cn flag

The URL should be http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=ec2, specifically with 8-stream as the release.

There's some other instructions on swapping from non-stream to stream on the official pages here: https://www.centos.org/centos-stream/

Also note that if you're using AWS, then you may want to make use of building AMIs to provide stable images to your environment based on stream. It's easy enough to set up a pipeline to build a base image each week that can then be used for testing and deployment. This can mitigate some of the 'risk' with using a stream-based release.

Conrad avatar
th flag
I did ```echo '8-stream' > /etc/yum/vars/releasever``` and ran update agin, it's busy updating now.
Conrad avatar
th flag
I see Google Cloud Platform use something called 'CentOS Linux 8'
cn flag
So do AWS on the marketplace. Just search Centos 8 and there's one published by AWS.
Conrad avatar
th flag
I tried Yesterday (1st Feb 2022) on the Google Cloud Platform their CentOS 8 (not Stream) no longer updates out the box. It worked just a few days ago, but not now. I was only able to use CentOS 8 Stream from GCP out the box without changing out the repos
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.