CentOS 7.9 installation in 2024 fixing

18 Sep

centos 7 update / upgrade fix

When you installing centos 7.9 from netinst iso you can set the next INSTALLATION SOURCE:

http://archive.kernel.org/centos-vault/7.9.2009/os/x86_64/

How to install older CentOS 7.9 in 2024:
https://www.voxfor.com/how-to-continue-installing-centos/

if you trying to make “yum update” command and got an error like “Could not resolve host: mirrorlist.centos.org; Unknown error” or “Could not retrieve mirrorlist http://mirrorlist.centos.org/

Then you need to change old mirror host “mirror.centos.org” to new “vault.centos.org”.
You need to run the next commands in a shell:

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

then:

yum clean all
yum update
Rating of article:
[Total: 1 Average: 5]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.