Bug 1274211
| Summary: | [RFE] Add strict mode to yum to return error if any requested packages were not available | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Stephen Tweedie <sct> | |
| Component: | yum | Assignee: | Valentina Mukhamedzhanova <vmukhame> | |
| Status: | CLOSED ERRATA | QA Contact: | Eva Mrakova <emrakova> | |
| Severity: | urgent | Docs Contact: | Jiri Herrmann <jherrman> | |
| Priority: | high | |||
| Version: | 7.2 | CC: | bbaude, brian.murrell, emrakova, hxx_118, james.antill, jherrman, jjarvis, mkolbas, vmukhame | |
| Target Milestone: | rc | Keywords: | FutureFeature | |
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | yum-3.4.3-133.el7 | Doc Type: | Release Note | |
| Doc Text: |
New "skip_missing_names_on_install" and "skip_missing_names_on_update" options for *yum*
The "skip_missing_names_on_install" and "skip_missing_names_on_update" options have been added to *yum* repository configuration. With "skip_missing_names_on_install" set to "False" in the `/etc/yum.conf` file, using the "yum install" command fails if *yum* cannot find one of the specified packages, groups, or RPM files. With "skip_missing_names_on_update" set to "False", using the "yum update" command fails if *yum* cannot find one of the specified packages, groups, or RPM files, or if they are available, but not installed.
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 1358495 (view as bug list) | Environment: | ||
| Last Closed: | 2016-11-04 05:29:54 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: | ||||
| Bug Depends On: | 1267234 | |||
| Bug Blocks: | 1289025, 1296649, 1299750, 1313485, 1358495, 1384256 | |||
|
Description
Stephen Tweedie
2015-10-22 09:34:40 UTC
Note that one way to do this that works in el7.0 is:
ENV ipkgs zsh aslfjalf vim-enhanced iftop
RUN sh -c "for i in ${ipkgs}; do yum -y install-n \$i || exit 1; done"
Flagging for RHEL 7.2.z review. *** Bug 1349693 has been marked as a duplicate of this bug. *** Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://rhn.redhat.com/errata/RHBA-2016-2397.html *** Bug 1429685 has been marked as a duplicate of this bug. *** |