adding proxy in yum.conf code example
Example: yum add proxy
# Open yum.conf
vi /etc/yum.conf
# Add this line at the end of file
echo "proxy=http://nom_or_ip_address_of_proxy:port/" >> /etc/yum.conf
# Open yum.conf
vi /etc/yum.conf
# Add this line at the end of file
echo "proxy=http://nom_or_ip_address_of_proxy:port/" >> /etc/yum.conf