# Install ES Client For Brew Cask Installation

**URL:** https://community.stardog.com/t/install-es-client-for-brew-cask-installation/3699
**Category:** Support
**Created:** [April 25, 2022, 7:16am UTC](https://community.stardog.com/t/install-es-client-for-brew-cask-installation/3699 "2022-04-25T07:16:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Tobias\_Schweizer](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/tobias_schweizer/32/1240_2.png) [@Tobias\_Schweizer](https://community.stardog.com/u/Tobias_Schweizer)
#### Post date: [April 25, 2022, 7:16am UTC](https://community.stardog.com/t/install-es-client-for-brew-cask-installation/3699/1 "2022-04-25T07:16:10Z")

</div>

Hi there,

I am trying to set up support for ES following the [docs](https://docs.stardog.com/virtual-graphs/data-sources/supported-client-drivers). I originally installed Stardog with [brew](https://docs.stardog.com/get-started/install-stardog/macOS-installation#homebrew) cask on macOS (`/usr/local/Caskroom`, stardog home is `/var/stardog`).

Does this mean I should now manually copy the jar files to `/usr/local/Caskroom` or is there a better way to do this? I really do not want to mess up with brew ...

Thanks and kind regards,

Tobias

---

<div class="post-metadata">

### Author: ![ClarkFarley](https://yyz2.discourse-cdn.com/flex030/user_avatar/community.stardog.com/clarkfarley/32/1144_2.png) [@ClarkFarley](https://community.stardog.com/u/ClarkFarley)
#### Post date: [April 25, 2022, 5:37pm UTC](https://community.stardog.com/t/install-es-client-for-brew-cask-installation/3699/2 "2022-04-25T17:37:32Z")

</div>

Hi Tobias,

The "cleaner" solution to this is the other option specified in the docs, which is to use a `STARDOG_EXT` directory. This can be done by creating a directory such as `/opt/stardog_ext`, then setting the `$STARDOG_EXT` environment variable to that directory via `export STARDOG_EXT=/opt/stardog_ext`. You can then place the ES and other driver files in this directory. You must also restart the Stardog server after making this change.

This also makes upgrading your Stardog server version more convenient as you don't have to place the jars in `/server/dbms` each time.

Best,  
Clark
