How to Configure Yum with Proxy

If the server is placed in network behind firewall and outgoing traffic is blocked by firewall, the only chance to install new packages from remote repo is through proxy (if that exists).