How to Configure yum through Proxy ?


Please shareShare on FacebookShare on Google+Tweet about this on TwitterShare on LinkedInShare on RedditDigg thisShare on StumbleUpon

Question: How to Configure yum through Proxy ?


Answer: If you are behind an http proxy server and you want yum to connect to the internet through that proxy open a terminal and type:

su -c 'gedit /etc/yum.conf

yum configuration


if you connecte with login and pass , should be


where ip is your proxy’s ip address and port is the port the proxy listens to. Don’t forget the / after the port number. Save and exit.

 [root@unixmen ~]# vi    /etc/bashrc 

and add a line

export proxy

save and exit

reboot your machine

 [root@unixmen ~]# yum   update

Loading “fastestmirror” plugin
Loading mirror speeds from cached hostfile
* epel:
* pidgin:
* rpmforge:
* livna:
* updates:
* base:
* addons:
* freshrpms:
* centosplus:
* extras:
* adobe-linux-i386:
Setting up Update Process