Unable to set proxy to "subscription-manager repos –list" -command

user176178 asked:

I have RHEL6 system that is registered to rhn via subscription-manager. I’am trying to install package java-1.6.0-sun-devel which is in rhel-6-server-optional-rpms repository, According to this Redhat Documentation. My system is behind proxy, so I need to enter command: “subscription-manager repos –list –proxy=myproxy.com:666” but this gives an error: “no such option –proxy”. Subscription-manager’s man-page does include –proxy as common option and I have used it to register this machine. Can you guys tell what’s wrong?

/var/log/rhsm/rhsm.log reports timed out connection.

Thank’s from all the help!

edit 1. Some typos..

My answer:


Try the other method of configuring a proxy server for Subscription Manager. This will also make the configuration persistent so that you won’t have to specify it every time.

subscription-manager config --server.proxy_hostname=proxyserver.example.com --server.proxy_port=8080

See Red Hat’s documentation (not the page you quoted!) for further details.


View the full question and answer on Server Fault.

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.