How can I force yum to provide a user agent so I can allow it through my proxy?

Updated -

When the yum update process runs, it does not present a valid http user agent when connecting through a proxy server, but shows a -, or hyphen as the user agent. For some users this is a problem if the proxy servers have strict rules or blacklist invalid or unkown user agent strings by default. The following workaround can be considered for such situation...

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In