MOTOSHARE πŸš—πŸοΈ

Rent Bikes & Cars Directly from Owners

Motoshare connects vehicle owners with people who need bikes and cars on rent. Owners earn from idle vehicles, and renters get flexible ride options.

Visit Motoshare

CentOS Stream 8 is EOL (End of Life)

Uncategorized

Alright, let’s end the confusion and get your CentOS Stream 8 repos working.
Here’s the deal as of mid-2026:


🚨 CentOS Stream 8 is EOL (End of Life)

As of June 2024, CentOS Stream 8 has reached end of life.
Official mirrors are being removed or archived, and that’s why you keep getting 404 Not Found on all repo URLs.

This is not a configuration bug on your partβ€”the repos themselves are GONE.


🟠 What are your options now?

Option 1: Migrate to CentOS Stream 9 or Rocky/AlmaLinux 8/9

  • Recommended.
  • Download a Rocky or AlmaLinux minimal ISO, or CentOS Stream 9 cloud image, and migrate or rebuild your instance.
  • Both Rocky and AlmaLinux have active 8.x and 9.x repos.

Option 2: Use Vault/Archive Repos (Not Recommended for Production!)

CentOS does maintain an archive of EOL repos:
You can use the CentOS vault. These repos will never be updated again and may disappear at any time.

How to use CentOS Vault Archive for Stream 8:

Replace your AppStream and BaseOS repo files with:

[baseos]
name=CentOS Stream 8 - BaseOS - Vault
baseurl=http://vault.centos.org/8-stream/BaseOS/x86_64/os/
enabled=1
gpgcheck=0

[appstream]

name=CentOS Stream 8 – AppStream – Vault baseurl=http://vault.centos.org/8-stream/AppStream/x86_64/os/ enabled=1 gpgcheck=0

(You can put both blocks in one file, or in separate files.)


1. Create the file:

sudo tee /etc/yum.repos.d/CentOS-Stream-Vault.repo > /dev/null << 'EOF'

[baseos]

name=CentOS Stream 8 – BaseOS – Vault baseurl=http://vault.centos.org/8-stream/BaseOS/x86_64/os/ enabled=1 gpgcheck=0

[appstream]

name=CentOS Stream 8 – AppStream – Vault baseurl=http://vault.centos.org/8-stream/AppStream/x86_64/os/ enabled=1 gpgcheck=0 EOF

2. Clean & try:

sudo dnf clean all
sudo dnf makecache
sudo dnf update


⚠️ IMPORTANT: Using Vault/EOL is NOT SAFE for Production!

  • No security updates.
  • No bugfixes.
  • Only use for recovery, migration, or as a very short-term solution.

πŸš€ Best Practice: Migrate ASAP

  • Start planning to rebuild your server on:
    • CentOS Stream 9 (if you want to stay close to RHEL)
    • Rocky Linux 8/9 (drop-in replacement for CentOS 8/9)
    • AlmaLinux 8/9 (also RHEL-compatible)
    • Or Oracle Linux 8/9 (free as well)

If you need a Rocky or AlmaLinux repo file, or a migration script, let me know!

Try the Vault repo above and you’ll get your yum/dnf working again for now.
If you want a one-liner to convert your server to Rocky or Alma, I can give that as well!

You have two issues now:

  1. Repo listed more than once:
    You have duplicate [baseos] and [appstream] definitions in multiple .repo files.
  2. Still using wrong (404) URL:
    You are still trying to reach mirror.stream.centos.org/CentOS-Stream-8/AppStream/x86_64/os/, which is not available.

Let’s Fix Both Issues in 3 Steps


πŸ›‘ Step 1: Remove/Disable All Old or Wrong CentOS 8 Stream Repo Files

First, move all default CentOS Stream repo files out of /etc/yum.repos.d to keep only your Vault repo:

cd /etc/yum.repos.d
sudo mkdir backup-old-repos
sudo mv CentOS-Stream-* backup-old-repos/

Now your only active repo should be your custom/vault one.


πŸ“ Step 2: Add Only the Vault Repo

Create one file for both AppStream and BaseOS Vault repos:

sudo tee /etc/yum.repos.d/CentOS-Stream-Vault.repo > /dev/null << 'EOF'

[baseos]

name=CentOS Stream 8 – BaseOS – Vault baseurl=http://vault.centos.org/8-stream/BaseOS/x86_64/os/ enabled=1 gpgcheck=0

[appstream]

name=CentOS Stream 8 – AppStream – Vault baseurl=http://vault.centos.org/8-stream/AppStream/x86_64/os/ enabled=1 gpgcheck=0 EOF


🧹 Step 3: Clean and Retry

sudo dnf clean all
sudo dnf makecache
sudo dnf update


Expected Result

  • No more duplicate repo warnings
  • No more 404 errors (because Vault is still available)
  • You will see packages update (from vault β€” but again, only old/EOL packages)

πŸ’‘ Optional: See Only Active Repos

You can verify which repos are enabled with:

dnf repolist


🚨 Final Reminder

  • These vault repos are for EOL systems β€” OK for migration or short-term, but no security updates.
  • For long-term, please migrate to Rocky/AlmaLinux or CentOS Stream 9.

Let me know if you want a one-liner script to migrate this system to Rocky or AlmaLinux 8 without reinstalling!

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
0
Would love your thoughts, please comment.x
()
x