sudo apt install clamav # On Debian, Ubuntu and Mint. sudo yum install clamav # On RHEL/CentOS/Fedora/Rocky/AlmaLinux. sudo emerge -a sys-apps/clamav # On Gentoo Linux. sudo apk add clamav # On Alpine Linux. sudo pacman -S clamav # On Arch Linux. sudo zypper install clamav # On OpenSUSE.