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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content