Problems I’ve encountered

Can’t install local files with dnf

Apparently this is a restriction of the particular dnf installed on Amazon Linux 2023

I’ve managed to install the required package using rmp. In Dockerfile it looked like this:

...
ARG CLAMAV_VERSION=1.0.5
RUN wget https://www.clamav.net/downloads/production/clamav-${CLAMAV_VERSION}.linux.x86_64.rpm \
    && rpm -i clamav-${CLAMAV_VERSION}.linux.x86_64.rpm \
    && rm clamav-${CLAMAV_VERSION}.linux.x86_64.rpm
...