Bug 1072258
| Summary: | yum doesn't handle/resolve symlinks to files for provides | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Karel Srot <ksrot> |
| Component: | yum | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE Security Team <qe-baseos-security> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 7.0 | CC: | dmach, james.antill, vmukhame |
| Target Milestone: | rc | Keywords: | Reopened |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2019-01-03 12:27:11 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
Karel Srot
2014-03-04 08:50:01 UTC
This is a generic yum vs. rpm thing ... rpm knows about fs remapping to resolve files to paths, yum doesn't (and can't easily). Eg. yum provides /bin/zsh So why yum can't ask rpm? Why to have the 'df' command then if it produce useless results? (In reply to James Antill from comment #2) > This is a generic yum vs. rpm thing ... rpm knows about fs remapping to > resolve files to paths, yum doesn't (and can't easily). > > Eg. yum provides /bin/zsh Btw, yum provides works for me. # which zsh /usr/bin/zsh # rpm -ql zsh | grep 'bin/zsh' /bin/zsh # # yum provides --disablerepo=\* /usr/bin/zsh Loaded plugins: auto-update-debuginfo, kabi, product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Loading support for Red Hat kernel ABI zsh-5.0.2-7.el7.x86_64 : Powerful interactive shell Repo : @rhel-7 Matched from: Filename : /usr/bin/zsh # yum provides --disablerepo=\* /bin/zsh Loaded plugins: auto-update-debuginfo, kabi, product-id, subscription-manager This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Loading support for Red Hat kernel ABI zsh-5.0.2-7.el7.x86_64 : Powerful interactive shell Repo : @rhel-7 Matched from: Filename : /bin/zsh I am reopening this bug because current implementation makes the 'du' and 'status' subcommands pretty useless due to large amount of false positives. Proposing the bug for 7.1. Again, I'm not sure what we can do here. (In reply to Karel Srot from comment #3) > So why yum can't ask rpm? It does ... in certain cases. Think of it like the difference between "rpm -ql tcsh | fgrep bin/tcsh" and "rpm -qf /usr/bin/tcsh". In the later rpm can do the magic mapping for you, in the former rpm will give you the data it has and that won't match reality. As far as I know there isn't an rpm API for "tell me the rpm filename for this filename" ... we could maybe hack it using basename guesses. > Why to have the 'df' command then if it produce > useless results? I would object to useless results, like a bunch of other yum APIs it can't follow symlinks/bind-mounts where something is installed to X but shows up as Y ... yes, this is probably more noticable due to "UsrMove" and all the continuing fallout from it. (In reply to Karel Srot from comment #4) > (In reply to James Antill from comment #2) > > This is a generic yum vs. rpm thing ... rpm knows about fs remapping to > > resolve files to paths, yum doesn't (and can't easily). > > > > Eg. yum provides /bin/zsh > > Btw, yum provides works for me. Not sure what I tested, but for instance: yum provides '/usr/bin/tcsh' (try this before and after installing) ...and this never works, even when installed: yum provides '/usr/bin/tcs*' ...whereas this one works all the time (assuming current tcsh package as above): yum provides '/bin/tcs*' |