Skip to content

Commit 7d26516

Browse files
manavgupkevalmahajan
authored andcommitted
fix: use dnf reinstall --downloadonly to download ca-certificates
dnf download fails when package is already installed on the host. Use dnf reinstall --downloadonly to force download even when installed. Fixes: package ca-certificates is already installed error Signed-off-by: Manav Gupta <manavg@gmail.com>
1 parent d784790 commit 7d26516

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Containerfile.lite

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ RUN set -euo pipefail \
207207
bash \
208208
python${PYTHON_VERSION} \
209209
procps-ng \
210-
&& dnf download --releasever=10 ca-certificates \
210+
&& dnf reinstall --downloadonly --downloaddir=. ca-certificates \
211211
&& rpm --root="${ROOTFS_PATH:?}" --install --nodeps --noscripts ca-certificates-*.rpm \
212212
&& rm -f ca-certificates-*.rpm \
213213
&& dnf clean all --installroot="${ROOTFS_PATH:?}"

0 commit comments

Comments
 (0)