如果我使用 yum 在 Centos 上安装 ClamAV,我有一个名为 /etc/clamd.d 的配置目录。然后我可以按照这样的配置教程进行操作:
https://www.golinuxcloud.com/steps-install-configure-clamav-antivirus-centos-linux/
如果我按照 ClamAV 说明从位于此处的源代码构建:
https://www.clamav.net/documents/installation-on-redhat-and-centos-linux-distributions
完成后,我没有 /etc/clamd.d。为什么不?
我正在创建一个 Dockerfile 来安装。这是 Dockerfile
FROM centos:8
COPY clamav-0.102.3.tar /tmp
RUN yum -y update && \
yum groupinstall "Development Tools" -y && \
yum install openssl openssl-devel libcurl-devel zlib-devel libpng-devel libxml2-devel bzip2-devel pcre2-devel ncurses-devel -y && \
yum install valgrind check check-devel -y && \
cd /tmp && \
tar -xf clamav-0.102.3.tar && cd clamav-0.102.3 && \
./configure --enable-check && \
./configure --sysconfdir=/etc && \
make -j2 && \
make check && \
make install && \
ls /etc/clamd.d (this fails)