[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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.