Today I tried to update a student’s Fedora Core 13 PC and install netbeans via yum at Anna University, Trichy, Where we are doing IP Tele project. But yum fails to retrieve packages from repository. Soon I found the PC is behind a proxy [Squid]. So I did some search over Google and found the below which may be useful to you at times.
Yum try to access the network repositories by using HTTP1.0 protocol by default. The squid we use can provide the HTTP1.0 proxy. So configuring yum to pass through the squid as follows worked.
To configure to a single user.
If you are not a Super user and wants to use yum then set an environment variable http_proxy to direct the yum to use the proxy. You can also set ftp_proxy, socks_proxy variable to use the yum with it. The value for the http proxy is like this http://user:password@host:3128
This will work to the current user only. If you sudo then the proxy setting will be lost.
To configure globally
To configure the yum to use the proxy server login into super user account and edit yum.conf
Then enter the following information.
#Proxy Server address
# Username and password if provided to your server