In case the command freshclam get an error like:
Just change the owner to:
freshclam
ERROR: Can't create temporary directory /var/lib/clamav/clamav-d20d60c1871cfa7f444225c0fe0356e0.tmp
Hint: The database directory must be writable for UID 494 or GID 494
Just change the owner to:
chown clamav:clamav /var/lib/clamav