Install ESET Antivirus on macOS via CLI

We will be installing antivirus on macOS.

System Information

We’re using Monterey in this case:

$ sw_vers
ProductName:	macOS
ProductVersion:	12.5.1
BuildVersion:	21G83
$ system_profiler SPSoftwareDataType
Software:

System Software Overview:

System Version: macOS 12.5.1 (21G83)
Kernel Version: Darwin 21.6.0
Boot Volume: Macintosh HD
Boot Mode: Normal
User Name: alice (alice)
Secure Virtual Memory: Enabled
System Integrity Protection: Disabled
Time since boot: 11 minutes

Install ESET Antivirus

Install curl:

$ brew install curl

Download ESET software:

$ curl -o /tmp/eea_osx_en.dmg https://download.eset.com/com/eset/apps/business/eea/mac/latest/eea_osx_en.dmg

Mount the .dmg disk image:

$ mkdir ~/mnt
$ hdiutil attach -mountpoint ~/mnt /tmp/eea_osx_en.dmg

Install ESET package:

$ sudo installer -pkg ~/mnt/Resources/Installer.pkg -target /
installer: Package name is ESET Endpoint Antivirus
installer: Installing at base path /
installer: The install was successful.

Unmount the disk and clean up:

$ hdiutil detach ~/mnt
$ rm -f /tmp/eea_osx_en.dmg

Find where esets_daemon is installed and navigate to that directory:

$ sudo find / -name esets_daemon -type f

Then activate ESET licence:

$ sudo ./esets_daemon --wait-respond --activate key=XXXX-XXXX-XXXX-XXXX-XXXX

Leave a Reply

Your email address will not be published. Required fields are marked *