How to add repositories to Red Hat Linux with and without a proxy - LinuxConfig.org

Our objective is to set up access to internal and remove yum repositories while some of them are behind proxy servers.
This is a companion discussion topic for the original entry at https://linuxconfig.org/how-to-add-repositories-to-red-hat-linux-with-and-without-a-proxy