• Configure Yum Behind Authenticated Proxy Server

    You can follow the following steps to get yum working behind a proxy server using user name & password for authentication.

    1) Add the following lines to yum.conf file.

    vi /etc/yum.conf
    proxy=http://proxy_server_here:port/
     proxy_username=user_name
     proxy_password=user_password

     

    2)Export http proxy in bash login :

    vi /root/.bash_profile
    export http_proxy=”http://proxy_server_here:80/”

    2)Export http proxy variable :

    export http_proxy=”http://proxy_server_here:80/”

    For testing ,run
    echo $http_proxy

    3)check now that every thing is working fine :

    yum list

    if there is no problems ,this should list all packages in all the repositories and all the packages installed on your system.

    Categories: Linux

    Comments are currently closed.