Set this in /etc/sysctl.conf
net.ipv6.conf.all.disable_ipv6 = 1
#apply the settings
sudo sysctl -p
linux, disable, ipv, centos, debian, mint, howtoset, etc, sysctl, conf, disable_ipv, settings, sudo,