Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1179471

Summary: Bash completion missing for rpm
Product: Red Hat Enterprise Linux 7 Reporter: Jacob Welsh <jwelsh-rhbz>
Component: bash-completionAssignee: Ondrej Oprala <ooprala>
Status: CLOSED NOTABUG QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.0CC: ovasik
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-16 11:00:46 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Jacob Welsh 2015-01-06 20:32:40 UTC
Description of problem:
Tab completion for the "rpmlint" command is bothersome due to error messages being written to the terminal.

Version-Release number of selected component (if applicable):
2.1-6

How reproducible:
Always

Steps to Reproduce:
1. Install bash-completion and rpmlint
2. Re-login or source /etc/bashrc
3. Type "rpmlint <TAB>"

Actual results:
# rpmlint -bash: /usr/share/bash-completion/completions/rpm: No such file or directory
-bash: _rpm_installed_packages: command not found

Expected results:
Either completion as intended from the installed package list plus local files, or at least from local files without dumping errors to the terminal.

Additional info:
/usr/share/bash-completion/completions/rpm used to be provided by bash-completion. Somewhere between 2.1-2 and 2.1-6 it was removed (the bugs referenced by the changelog are private). But the completion files for rpmlint and rpmdiff expect it to exist, causing this error.

Comment 2 Ondrej Oprala 2015-01-16 11:00:46 UTC
Hey Jacob,
this is intentional, we don't ship all the bash completions with RHEL.
However, feel free to open an RFE for rpm, for them to bundle the completions along with the package.

Thanks for the report!

Comment 3 Jacob Welsh 2015-01-16 14:25:50 UTC
Re-requested as #1183032.