open yum.conf file in any text editor or in terminal using
vi /etc/yum.conf
Add below line to the file
proxy = http://proxy server ip or hostname:port/
if connecting using login and password use
proxy = http://username:password@proxy server ip or hostname:port/
save and close the file.
yum over proxy,proxy for yum,yum with proxy,yum on proxy,configure yum to use with proxy,configure yum with proxy
vi /etc/yum.conf
Add below line to the file
proxy = http://proxy server ip or hostname:port/
if connecting using login and password use
proxy = http://username:password@proxy server ip or hostname:port/
save and close the file.