How do I temporarily suspend Avast in order to install Nikon NX2
You can fully quit Avast and, if you want to, uninstall it following these directions:
https://www.lancelhoff.com/how-to-remove-avast-antivirus-from-a-mac/
To do a complete uninstall, you might also want to also trash these components:
~/Library/Application Support/com.avast.MacAvast
/Library/Receipts/avast.pkg
It might be a good idea to just get rid of Avast permanently. It isn't safe. See:
http://www.thesafemac.com/avast-installs-adware/
http://www.thesafemac.com/avasts-man-in-the-middle/
My feeling is that anti-virus software is way more trouble than it is worth. There are no really worrisome malware examples for the Mac in the wild right now, and all fully interactive anti-virus software will to some extent cause slowdowns and possibly some nasty software conflicts.
That said, if you really want a free anti-virus program, have a look at:
Avira for Mac (free)
https://www.avira.com/en/free-antivirus-mac
is a competent free anti-virus program. And at least it doesn't install malware of its own, like Avast does. If you start to notice that your Mac has slowed down, or you start seeing the dreaded rotating beachball way too often, you should probably uninstall Avira:
https://answers.avira.com/en/question/how-to-uninstall-avira-free-antivirus-for-mac-9749
MalwareBytes is frequently recommended as an anti-malware program on this site. While it is a comprehensive anti-adware program, and worth having for that purpose alone, I think that it's anti-malware abilities are extremely limited. That may not make a difference, because there is very little to look for. But if you want anti-virus software you might as well go with something that is more effective rather than something that is less effective.