> ## Documentation Index
> Fetch the complete documentation index at: https://anaconda.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Configuring a shared package cache

export const Danger = ({children}) => {
  return <div class="callout my-4 px-5 py-4 overflow-hidden rounded-2xl flex gap-3 border danger-admonition dark:danger-admonition" data-callout-type="danger">
      <div class="mt-0.5 w-4">
        <svg width="14" height="14" viewBox="0 0 14 14" fill="rgb(239, 68, 68)" xmlns="http://www.w3.org/2000/svg" class="w-4 h-4 text-sky-500" aria-label="Danger">
          <path fill-rule="evenodd" clip-rule="evenodd" d="M7 1.3C10.14 1.3 12.7 3.86 12.7 7C12.7 10.14 10.14 12.7 7 12.7C5.48908 12.6974 4.0408 12.096 2.97241 11.0276C1.90403 9.9592 1.30264 8.51092 1.3 7C1.3 3.86 3.86 1.3 7 1.3ZM7 0C3.14 0 0 3.14 0 7C0 10.86 3.14 14 7 14C10.86 14 14 10.86 14 7C14 3.14 10.86 0 7 0ZM8 3H6V8H8V3ZM8 9H6V11H8V9Z"></path>
        </svg>
      </div>
      <div class="text-sm prose min-w-0 w-full">
        {children}
      </div>
    </div>;
};

Conda maintains a package cache, a local directory where downloaded packages are stored before being installed into environments. By default, each conda installation uses its own isolated package cache, meaning the same package versions are downloaded and stored separately for each user or installation. Configuring multiple conda installations to share a common package cache can significantly reduce download times and conserve disk space, as packages only need to be downloaded once and can then be reused across all installations that reference the shared cache.

## Package cache locations

Normal installation sets a package cache relative to the install directory, which can be found (under `package cache`) with the following command:

```sh theme={null}
conda info
```

The typical path to the package cache is:

* **Windows**: `C:\Users\username\Anaconda3\pkgs`
* **macOS**: `~/anaconda3`
* **Linux**: `/home/username/anaconda3/pkgs`

## Shared package cache setup

Create a directory on your system where the shared users have read and write access.

<Danger>
  If you are using the Free plan, take caution when sharing your directory. If you have paid for access to the premium repository, you can [enable signature verification](/anaconda-platform/cloud/user/packages#enabling-conda-signature-verification) to include an additional layer of security to your packages. For more information on conda signature verification, see our blog [Anaconda Content Trust: Conda Signature Verification](https://www.anaconda.com/blog/conda-signature-verification).
</Danger>

Then, for each user who will have access, edit the `.condarc` file found in their home directory.

* **Windows**: `C:\Users\username\.condarc`

* **macOS and Linux**: `/home/username/.condarc`

Edit the `.condarc` with the following entry, specifying the full path to the shared directory:

```sh theme={null}
pkgs_dirs:
    - /path/to/shared_directory
```

Verify the package cache by running `conda info` again.
