This how to describe to configure YUM to work behind proxy server using username / password for authentication. YUM is great tool available in RHEL/Fedora/CentOS to install/update/remove packages easily from local and internet repositories. In the most offices / schools / colleges where proxies are implemented and direct connection to the internet is not possible and all internet traffic goes through proxy servers. Same as in my office we have to use proxy server with username / password to authenticate ourself to get internet access. So we are going to configure my YUM software to use proxy to get my LINUX updated with new softwares all the times with repositories available on internet.
OS = Fedora 10
1) Configure yum.conf
enter following lines at bottom of [main] section
2) Export http_proxy variable
3) Export http_proxy variable in bash login script
This will help you to export http_proxy variable automatically everytime you login.
Now use “yum list” command to check for its working.