How to enable http Proxy Settings for Yum Command on RHEL / CentOS Servers?

  1. No username and password required: To configure proxy without username and password:
    export http_proxy=http://SERVER:PORT/
  2. Username and password authentication: To configure the proxy server with username and password authentication:
    export http_proxy=http://USERNAME:PASSWORD@SERVER:PORT/
Rajesh Kumar
Follow me
Latest posts by Rajesh Kumar (see all)