【问题标题】:Installing ClamAV from Source on Linux在 Linux 上从源代码安装 ClamAV
【发布时间】:2020-10-12 07:13:43
【问题描述】:

如果我使用 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)

【问题讨论】:

    标签: installation centos clamav


    【解决方案1】:

    EPEL 8 中的 ClamAV RPM 包使用更多的构建时选项,并且通常执行更多的构建和运行时自定义(与您的简约示例相比),请参阅spec file 了解详细信息。

    但问题是,鉴于您之前参考过 EPEL 7 安装说明,为什么您不简单地使用 EPEL 8 中现有的 ClamAV RPM 软件包。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-01-22
      • 2015-09-14
      • 1970-01-01
      • 2021-06-30
      相关资源
      最近更新 更多