Set Proxy For Yum In Centos

vi /etc/yum.conf
proxy=http://proxy.address:8080
proxy_username=<user>
proxy_password=<pwd>