Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 581 Bytes

DL3041.md

File metadata and controls

23 lines (14 loc) · 581 Bytes

Pattern: Missing version for dnf install -y <package>-<version>

Issue: -

Description

Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes in required packages.

Example of incorrect code:

RUN dnf install -y httpd && dnf clean all

Example of correct code:

RUN dnf install -y httpd-2.24.2 && dnf clean all

Further Reading