Main Menu

search

You are here

Linux: Anti-virus

[last updated: 2025-10-15]
...
-----


      On This Page:
  • ClamAV:
    Installation
    My History
    Scan your system
  • ...
  • ...


-----

  • Clamav:
    • Introduction:
      Description in package manager says this collection of programs is mainly for:
        "...integration with mail servers (attachment scanning)"

      There are several versions available on my Mint 22.2 package manager:

        clamav, clamav-freshclam, clamav-base, clam-daemon, clamdscan, + 10 more...
    • Installation:

      -------------------------------------------

    • My Installation History:
      • first attempts (not completely documented/recorded), unsuccessful, abandoned...
        $ sudo apt install clamav clamav-daemon
        $ sudo systemctl stop clamav-freshclam
        $ sudo freshclam
        $ sudo systemctl start clamav-freshclam
        ---------------

      • 2025-04-05:
        • downloaded:
            clamav-1.4.2.linux.x86_64.deb
            clamav-1.4.2.linux.x86_64.deb.new_key.sig
            clamav-1.4.2.linux.x86_64.deb.sig
        • installed:
            $ sudo apt install ~/Downloads/clamav-1.4.0.libnux.x86_64.deb
              Note this instruction is cut and pasted from (... link above), but has a typo,
              and should be ... 1.4.2.linux.x86 ...

        ---------------

      • 2025-10-15:
        • googleAI instructions:
            sudo apt-get install clamav
        • sudo dpkg confirmed successful install of version 1.4.3 (clamav site says 1.5.0 is most current...)
          It also said:
            Depends: clamav-freshclam (>= 1.4.3+dfsg) | clamav-data, libc6 (>= 2.38), libclamav12 (>= 1.4.3), libcurl4t64 (>= 7.16.2), libgcc-s1 (>= 4.2), libjson-c5 (>= 0.15), zlib1g (>= 1:1.2.3.3)
              dpkg confirmed clamav-freshclam was also installed...

            Recommends: clamav-base (also installed, per dpkg)
            Suggests: libclamunrar, clamav-doc

        • Ran on both BeeLink and MinisForum:
            $ sudo clamscan -r -i ~/

          Took about 0:45. No infected files found. Disappointing, so not sure what is causing slow-downs.

        -------------------------------------------

      • Verify installation:
            $ apt info clamav

          However this command did not work. The 'info' parameter perhaps is not supported in my version.
          But this did work:

            $ sudo dpkg -s clamav

          and showed successful install.

        -------------------------------------------

      • Scan your system with ClamAV::
        • $ sudo clamscan -r –bell -i /
          -r: Recursive scan.
          –bell: Beep when a virus is found.
          -i: Only show infected files.
          Infected files will be listed in the terminal output.
        • or:
          $ clamscan --recursive /
          This executed, though gave error:
            "No such file or directory: /usr/local/share/clamav"

        -------------------------------------------

      • Links:
        https://fossies.org/linux/clamav/docs/html/manual/Usage/Scanning.html

      -------------------------------------------

    • other software...
      -------------------------------------------


    eof