For Linux, the best antivirus is ClamAV. This antivirus is developed by Cisco, which publishes daily antiviral signatures to keep it up to date. Additionally, it is possible to add other antiviral signatures to further increase the malware detection rate.
To summarize, Cisco's antivirus, combined with the addition of SecuriteInfo.com's antiviral signatures, makes ClamAV the best antivirus for Linux.
You can therefore use this antivirus to secure a web server, a file server, a backup, cloud storage, a network stream, etc.
We will see how to install and configure ClamAV and SecuriteInfo.com's antiviral signatures for the following distributions:
To install ClamAV and SecuriteInfo.com's antiviral signatures on the Debian operating system, here is the procedure with root privileges. Otherwise, use "sudo" before each command:
Add "non-free" to your /etc/apt/sources.list. For example, for Debian 12, add the following lines:
deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb-src http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian/ bookworm-proposed-updates main contrib non-free non-free-firmware
deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
Then install the ClamAV packages and tools:
apt-get update
apt-get install clamav clamav-freshclam clamav-daemon libclamunrar daemon parallel clamdscan
Add the configuration lines found in your personal account, "Installation" tab to the file /etc/clamav/freshclam.conf. Run freshclam to verify that all antiviral signature databases have been retrieved, then start the clamav-daemon service.
service clamav-freshclam stop
freshclam
service clamav-freshclam start
service clamav-daemon restart
You can now scan a directory with ClamAV. For example, to scan the /home directory for malware:
clamdscan -i --stream /home
# or faster:
find /home -type f |parallel clamdscan -i --stream --no-summary {}
To install ClamAV and SecuriteInfo.com's antiviral signatures on the Ubuntu operating system, here is the procedure with root privileges. Otherwise, use "sudo" before each command:
Install the ClamAV packages and tools:
apt-get update
apt-get install clamav clamav-freshclam clamav-daemon libclamunrar daemon parallel clamdscan
Add the configuration lines found in your personal account, "Installation" tab to the file /etc/clamav/freshclam.conf. Run freshclam to verify that all antiviral signature databases have been retrieved, then start the clamav-daemon service.
service clamav-freshclam stop
freshclam
service clamav-freshclam start
service clamav-daemon restart
You can now scan a directory with ClamAV. For example, to scan the /home directory for malware:
clamdscan -i --stream /home
# or faster:
find /home -type f |parallel clamdscan -i --stream --no-summary {}
To install ClamAV and SecuriteInfo.com's antiviral signatures on the Fedora operating system, here is the procedure with root privileges. Otherwise, use "sudo" before each command:
Install the ClamAV packages and tools:
dnf install clamav clamd clamav-data clamav-filesystem clamav-lib clamav-freshclam parallel
Uncomment the lines "TCPSocket 3310" and "TCPAddr localhost" in the file /etc/clamd.d/scan.conf and enable clamd at startup:
systemctl enable clamd@scan
Run the "parallel" command once to specify "will cite" on first use. Add the configuration lines found in your personal account, "Installation" tab to the file /etc/freshclam.conf. Run freshclam to verify that all antiviral signature databases have been retrieved, then restart the services.
systemctl stop clamav-freshclam.service
freshclam
systemctl start clamav-freshclam.service
systemctl restart clamd@scan.service
You can now scan a directory with ClamAV. For example, to scan the /home directory for malware:
clamdscan -i --stream /home
# or faster:
find /home -type f |parallel clamdscan -i --stream --no-summary {}