Skip to content

Commit e5a17ac

Browse files
committed
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 94c2aad commit e5a17ac

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
@@ -124,7 +124,7 @@ RUN set -euo pipefail \
124124
bash \
125125
python${PYTHON_VERSION} \
126126
procps-ng \
127-
&& dnf download --releasever=10 ca-certificates \
127+
&& dnf reinstall --downloadonly --downloaddir=. ca-certificates \
128128
&& rpm --root="${ROOTFS_PATH:?}" --install --nodeps --noscripts ca-certificates-*.rpm \
129129
&& rm -f ca-certificates-*.rpm \
130130
&& dnf clean all --installroot="${ROOTFS_PATH:?}"

0 commit comments

Comments
 (0)