Config file: /etc/yum.conf
man yum.conf

example config file fragment:
   [haskell-stable]
   name=Haskell Packages (stable)
   baseurl=http://haskell.org/fedora/haskell/$releasever/$basearch
   gpgkey=http://haskell.org/fedora/RPM-GPG-KEY
   gpgcheck=1
  
yum -C ... run entirely from cache