Comments on: How to enable Proxy Settings for Yum Command on RHEL/CentOS https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/ Thu, 10 Sep 2020 21:16:57 +0000 hourly 1 By: Luis https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-21667 Thu, 10 Sep 2020 21:16:57 +0000 http://www.linuxtechi.com/?p=4941#comment-21667 The file /etc/environment is a configuration file, not a bash initialization script, so you should not include “export” in these definitions

]]>
By: albert https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-16731 Tue, 05 Nov 2019 09:03:30 +0000 http://www.linuxtechi.com/?p=4941#comment-16731 http is working but https not working. Any idea ?

]]>
By: Singman https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-13175 Fri, 09 Aug 2019 12:43:55 +0000 http://www.linuxtechi.com/?p=4941#comment-13175 In reply to James.

You can try to escape like that :
http_proxy=http://domain\\username:password@proxyaddress:80

]]>
By: James https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-10315 Wed, 15 May 2019 21:48:58 +0000 http://www.linuxtechi.com/?p=4941#comment-10315 In the /etc/environment or root/bash.rc examples how would you account for a domain designation such as “domainname\username”

http_proxy=http://domain\username:password@proxyaddress:80 does not seem to work.

In the yum.conf example it works because I can specify the username as a variable… Any advice would be greatly appreciated.

]]>
By: Simone https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-8056 Tue, 12 Mar 2019 11:54:40 +0000 http://www.linuxtechi.com/?p=4941#comment-8056 I’m not sure the ‘#’ in the password without escaping will be accepted by your system without commenting everything after.

]]>
By: ddd https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-6663 Fri, 30 Nov 2018 10:44:48 +0000 http://www.linuxtechi.com/?p=4941#comment-6663 In reply to mosi.

Hi, set this
proxy=http://192.168.1.104:8181/

]]>
By: mosi https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-6653 Thu, 29 Nov 2018 21:01:12 +0000 http://www.linuxtechi.com/?p=4941#comment-6653 Hi, My CentOS Server is running on virtualbox, I run privoxy and make a http proxy on port 8118, then set the proxy in yum.conf file like this:
proxy=192.168.1.104:8118
This is my main OS ip, but I see “Connection refused …” errro
with foxyproxy on firefox I am connected with same details , please help

]]>
By: Aymaliev https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-5431 Fri, 03 Aug 2018 10:56:14 +0000 http://www.linuxtechi.com/?p=4941#comment-5431 Best tutorial out there. Thank you

]]>
By: Pradeep Kumar https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-1796 Thu, 26 Oct 2017 02:10:54 +0000 http://www.linuxtechi.com/?p=4941#comment-1796 In reply to Juliette.

Hi Juliette,

First set the proxy variables on the terminal and then try executing the commands, If you wan to use ‘/etc/environment’ file then you have to first source the file using the command:

# source /etc/environment

]]>
By: Juliette https://www.linuxtechi.com/proxy-settings-yum-command-on-rhel-centos-servers/#comment-1782 Wed, 25 Oct 2017 13:24:58 +0000 http://www.linuxtechi.com/?p=4941#comment-1782 Hi,

Thanks for your help, but I still have a bad issue when I try to execute yum.
I configure my /etc/environment like you, try “yum update”
and now, (as always, before my configuration), I have this error :

There was an error communicating with RHN.
Red Hat Satellite or RHN Classic support will be disabled.
Error communicating with server. The message was:
Unable to connect to the host and port specified
[a874878adm@sma6333 etc]$

]]>