centos: disable ipv6 in yum/dnf

On my server present ipv4 and ipv6, but yum index updates take too long time, I realize some ipv6 problem is here but I want just to disable ipv6 for yum.

ip_resolve=4