如果使用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)
答案 0 :(得分:0)
EPEL 8中的ClamAV RPM软件包通常使用更多的构建时选项并执行更多的构建和运行时自定义(与您的简约示例相比),有关如何实现此目标的详细信息,请参见spec file
但是,问题是,为什么您不简单使用EPEL 8中现有的ClamAV RPM软件包,因为您之前已经参考过EPEL 7安装说明。