Installing Avast Business Antivirus (Linux)

This Article Applies to:

  • Avast Business Antivirus

Packages

The Avast Business Antivirus for Linux products include components, which are distributed as standard software packages, and software repositories so all of the standard system management tools can be used to keep Avast programs up to date.

Avast

The Avast package provides the core scanner service and a command line scan utility. It also contains a command line license utility. This allows for on-demand scanning.

Avast-fss

The Avast-fss package provides a fanotify-based "on write" file system shield designed for file server usage, usually SMB/NFS servers.

Installation

Installation on any Linux system involves adding the Avast repository to the system repositories, and then retrieving the desired packages from the repository.

Debian/Ubuntu

  1. Add the Avast repository to the system repositories:
    • Debian (pre-9 stretch) and Ubuntu (pre-18.04): # echo "deb http://deb.avast.com/lin/repo debian release" \ >> /etc/apt/sources.list
    • Ubuntu (18.04+): # echo "deb http://deb.avast.com/lin/repo ubuntu-bionic release" \ >> /etc/apt/sources.list
    • Debian (9 stretch): # echo "deb http://deb.avast.com/lin/repo debian-stretch release" \ >> /etc/apt/sources.list
    • Debian (10 buster): # echo "deb http://deb.avast.com/lin/repo debian-buster release" \ >> /etc/apt/sources.list
  2. Download the GPG key to receive VPS updates:
    • # wget http://files.avast.com/files/resellers/linux/avast.gpg
  3. Install the Avast public key and update package manager state:
    • # apt-key add /path/to/avast.gpg
    • # apt-get update
  4. Install the Avast package and optionally the Avast-fss package:
    • # apt-get install avast
    • # apt-get install avast-fss
  5. Copy the license file to the /etc/avast directory:
    • cp /path/to/license.avastlic /etc/avast

Once the license file is in the proper directory, you can start the Avast services. For more information about finding the license file, see Licensing Avast Business Antivirus (Linux).

RHEL/CentOS

  1. Add the Avast repository to the system repositories:
    • # echo '[avast]

      name=Avast

      baseurl=http://rpm.avast.com/lin/repo/dists/rhel/release enabled=1

      gpgcheck=1' > /etc/yum.repos.d/avast.repo

      # rpm --import http://files.avast.com/files/resellers/linux/avast.gpg
  2. Install the Avast package and optionally the Avast-fss package:
    • # yum install avast
    • # yum install avast-fss
  3. Copy the license file to the /etc/avast directory:
    • cp /path/to/license.avastlic /etc/avast

Once the license file is in the proper directory, you can start the Avast services. For more information about finding the license file, see Licensing Avast Business Antivirus (Linux).

The current virus definitions database (VPS) is downloaded during the installation of the avast package, so the installation may take some time. For more information about the Avast GPG public key (avast.gpg), see Updating Avast Business Antivirus (Linux).

Starting the Avast service

Avast packages provide conventional init scripts for starting and stopping the services.

  • Starting the service: # /etc/init.d/avast start
  • Stopping the service: # /etc/init.d/avast stop

Avast services use the system logger (syslog) to create log files, and the location is dependent on the host system. The most common log file paths are /var/log/messages and /var/log/syslog.