[RFE] yum --exclude includes installed rpms

Solution Unverified - Updated -

Issue

yum --exclude includes installed rpms in the result set even if the --exclude option specifically asks to include that rpm.

For example: without --exclude

# yum provides "libreadline.so.5()(64bit)"
compat-readline5-5.2-17.1.el6.x86_64 : A library for editing typed command lines
Repo        : production-rhel-x86_64-workstation-6.5
Matched from:
Other       : libreadline.so.5()(64bit)



compat-readline5-5.2-17.1.el6.x86_64 : A library for editing typed command lines
Repo        : installed
Matched from:
Other       : Provides-match: libreadline.so.5()(64bit)

And using --exclude

# yum --exclude=compat-readline5 provides "libreadline.so.5()(64bit)"
compat-readline5-5.2-17.1.el6.x86_64 : A library for editing typed command lines
Repo        : installed
Matched from:
Other       : Provides-match: libreadline.so.5()(64bit)

Still the "installed" compat-readline5 package is showing though we excluded it .

Environment

  • Red Hat Enterprise Linux (RHEL) 6.5
  • yum-3.2.29-43 or lower

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