Wednesday, September 28, 2011

YUM over proxy

You need to update yum.conf and add proxy configurations

1- sudo vi /etc/yum.conf

2- Add the following:



            # The proxy server - server: port
            proxy=http://proxyName:Port_Number
            # If proxy authentication is required
            proxy_username=proxy_user
            proxy_password=proxy_user_password

3- In some cases you need to define this variable:
            http_proxy='http://proxy_Name:port_Number'

4- If your proxy is perminant you can export that variable to make it perminant:
    sudo export http_proxy='http://proxy_Name:port_Number'

Now if you want to use direct connection as in my case at home i use direct connection and at university i use proxy just put # in the front of the lines you have inserted to the configuration file this will make them comments and yum will ignore comments and when you want to use proxy just delete the # except this lines
            # The proxy server - server: port
            # If proxy authentication is required
Because they must be comments and used to let you know easily where the proxy configuration are

Please comment on this topic


Please support me by downloading this file
Click Here to download

No comments:

Post a Comment