If you are using a new CentOS VPS and receiving errors when you try to use yum, please run the following over SSH to force your system to work:

sysctl -w net.ipv6.conf.all.disable_ipv6=1
sysctl -w net.ipv6.conf.default.disable_ipv6=1

yum update -y

sysctl -w net.ipv6.conf.all.disable_ipv6=0
sysctl -w net.ipv6.conf.default.disable_ipv6=0

reboot

Was this answer helpful? 72 Users Found This Useful (109 Votes)