7 lines
356 B
Markdown
7 lines
356 B
Markdown
# CentOS Repo Fix
|
|
They changed the URLs for the repos for CentOS. to fix, change the repos in yum's config:
|
|
```
|
|
sudo sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo
|
|
sudo sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo
|
|
sudo sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo
|
|
```
|