Configure your CentOS Stream 8 virtual machine to use vault repositories

Now that CentOS Stream 8 has reached EOL on May 31, 2024, users are strongly encouraged to migrate or upgrade their virtual machines to other RHEL based distributions.

One of the first consequence of the EOL is that all CentOS Stream 8 package repositories have been moved from their default location and archived on https://vault.centos.org, and therefore if users still want to be able to install or reinstall RPM packages, they would need to perform the steps below in order to access the new vault repos:

  1. Disable the current repositories to avoid conflicts with the vault repositories. Open a terminal and execute the following commands:

sudo dnf config-manager --set-disabled \*

  1. Add the new CentOS Stream 8 vault repositories. Create a new .repo file for the vault repositories.

sudo vi /etc/yum.repos.d/CentOS-Stream-Vault.repo

  1. Add the following content to the file:

[baseos-vault]
name=CentOS Stream 8 - BaseOS - Vault
baseurl=http://vault.centos.org/centos/8-stream/BaseOS/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[appstream-vault]
name=CentOS Stream 8 - AppStream - Vault
baseurl=http://vault.centos.org/centos/8-stream/AppStream/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[extras-vault]
name=CentOS Stream 8 - Extras - Vault
baseurl=http://vault.centos.org/centos/8-stream/extras/$basearch/os/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial

[extras-common-vault]
name=CentOS Stream 8 - Extras common packages - Vault
baseurl=http://vault.centos.org/centos/8-stream/extras/$basearch/extras-common/
gpgcheck=1
enabled=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-SIG-Extras

  1. Update the system to ensure everything is working correctly with the new repositories.

sudo rm -rf /var/cache/dnf
sudo dnf clean all
sudo dnf makecache

NOTE: All latest ProComputers packaged CentOS Stream 8 images have already the vault repos configured.

For any questions related to this article, please contact ProComputers Support.

Why choose ProComputers?

With over 10 years of experience working with Microsoft Azure, ProComputers provides open-source software bundled together into solutions ready to be launched on-demand in the cloud.

ProComputers is a proud sponsor of the AlmaLinux OS Foundation and the Rocky Enterprise Software Foundation.

Red Hat and CentOS are trademarks or registered trademarks of Red Hat, Inc. or its subsidiaries in the United States and other countries. We are not affiliated with, endorsed by or sponsored by Red Hat or the CentOS Project.

All other trademarks are the property of their respective owners.