The easiest way to get the ClamAV package is using Homebrew
Before trying to start the clamd daemon, you'll need a copy of the ClamAV databases.
Where Homebrew Packages Are Installed on Mac OS: the Homebrew Installation Path. By default, Homebrew will install all packages into the following directory in all versions of Mac OS: /usr/local/Cellar/ Additionally, Homebrew places symlinks into the following directory path: /usr/local/opt/. Use this tutorial to install MongoDB 4.4 Community Edition on macOS using the third-party Homebrew package manager. Starting with MongoDB 4.4.1, installing MongoDB via Homebrew also installs the MongoDB Database Tools. Method #1: Install the aws-cli using brew on macOS. First, install Homebrew on macOS and then type the following command: $ brew install awscli Add the following to /.bashrc to enable bash completion for aws command. You can install Xcode, the CLT, or both; Homebrew supports all three configurations. Downloading Xcode may require an Apple Developer account on older versions of Mac OS X. Sign up for free here. 4 The one-liner installation method found on brew.sh requires a Bourne-compatible shell (e.g. Notably, fish, tcsh and csh will not work.
Inside /your/location/to/brew/etc/clamav, you'll see 2 files:
- freshclam.conf.sample
- clamd.conf.sample
Create copies of the samples:
Open up freshclam.conf, comment out 'Example' from line 8, and make sure
is enabled. Save your changes.
Then run
to download the ClamAV databases. The output will look something like this:

Open up clamd.conf, and
- Comment: 'Example' from line 8
- Uncomment: LocalSocket /tmp/clamd.socket from line 85
- Save your changes

Next, let's look for the location of clamd by running:$ brew ls clamav
You should see the following:
To start the clamd daemon, run the following:
You should now be able to scan a file by doing:
Back in 2016, we blogged about deploying MariaDB 10.1.16 on Mac OS X with Homebrew. Homebrew now includes MariaDB 10.4, 10.3, 10.2, and 10.1 for macOS. We’ve refreshed this blog to reflect the latest technology. If you need the old blog, you can find it here.

1. Install Xcode
Run xcode-select --install.
2. Install Homebrew
Run /bin/bash -c '$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)'.
3. Check Homebrew
Run brew doctor. Follow on-screen instructions to fix warnings if necessary.
4. Update Homebrew
Run brew update.
5. Verify MariaDB version in Homebrew repo
Run brew info mariadb.

6. Install MariaDB
Run brew install mariadb. Follow on-screen instructions to upgrade if necessary to upgrade a previously installed version.
7. Run the database installer
Run mysql_install_db. Follow on-screen instructions to upgrade if necessary to upgrade a previously installed version.
8. Start MariaDB

Run mysql.server start.
9. Secure the installation
If you are installing MariaDB 10.4.6 or later:
Run mariadb-secure-installation.
If you are installing an earlier version of MariaDB:
Run mysql_secure_installation.
NOTE: If you are unsure about using unix_socket, do not enable it when asked.
NOTE: Set a root password even if the on-screen instructions tell you it is safe not to do so.
10. Connect to MariaDB
Macos Brew Command Not Found
Run mariadb -u root -p.
Mac Os X Brew
If you’ve installed an older version of mariadb you may need to use “mysql -u root -p” in the above command.
