How to temporarily deactivate fire walls

Cam I temporarily deactivate Avast in order to add new app and then reactive Avast?

Probably not what you are seeking - It really shouldn’t be required to disable the firewall to install a program.

How do you know the problem (whatever it is) is related to the firewall ?
What do you feel it is necessary to disable the firewall ?
Are you getting any errors ?