@@ -141,6 +141,67 @@ try (Service python = env.python()) {
141141Of course, the above examples could have been done all in one language. But
142142hopefully they hint at the possibilities of easy cross-language integration.
143143
144+ ## Caching and disk usage
145+
146+ Appose uses multiple layers of caching to improve performance and reduce
147+ redundant downloads. Understanding these cache locations can help you manage
148+ disk usage and troubleshoot environment issues.
149+
150+ ### Appose environment cache
151+
152+ ** Location:** ` ~/.local/share/appose/ ` (customizable via ` appose.envs-dir ` system property)
153+
154+ This directory contains:
155+ - ** Tool binaries:** Pixi, UV, and Micromamba executables downloaded by Appose
156+ - ` .pixi/bin/pixi ` (v0.39.5)
157+ - ` .uv/bin/uv ` (v0.5.25)
158+ - ` .mamba/bin/micromamba ` (latest)
159+ - ** Built environments:** Each named environment created via ` build(envName) `
160+
161+ ### Package manager caches
162+
163+ Each package manager maintains its own cache for downloaded packages:
164+
165+ ** Pixi** (uses Rattler cache):
166+ - Linux: ` ~/.cache/rattler `
167+ - macOS: ` ~/Library/Caches/rattler `
168+ - Windows: ` %LOCALAPPDATA%\rattler\Cache `
169+ - Environment variable: ` PIXI_CACHE_DIR ` or ` RATTLER_CACHE_DIR `
170+
171+ ** UV** :
172+ - Linux: ` ~/.cache/uv `
173+ - macOS: ` ~/Library/Caches/uv `
174+ - Windows: ` %LOCALAPPDATA%\uv\Cache `
175+ - Environment variable: ` UV_CACHE_DIR `
176+ - Check location: ` uv cache dir `
177+
178+ ** Micromamba** :
179+ - Default: ` ~/micromamba/pkgs/ ` (micromamba's default root prefix)
180+ - Alternative: ` ~/.conda/pkgs/ ` (if conda was installed previously)
181+ - Customizable via: ` micromamba config append pkgs_dirs /path/to/cache `
182+ - Environment variable: ` MAMBA_ROOT_PREFIX ` (changes the entire root, including ` pkgs/ ` subdirectory)
183+
184+ ### Clearing caches
185+
186+ To free up disk space, you can clear individual caches:
187+
188+ ``` bash
189+ # Clear UV cache
190+ uv cache clean
191+
192+ # Clear Pixi/Rattler cache
193+ pixi clean cache --yes
194+
195+ # Clear Micromamba cache
196+ micromamba clean --all --yes
197+
198+ # Remove all Appose environments and tools (nuclear option)
199+ rm -rf ~ /.local/share/appose
200+ ```
201+
202+ ** Note:** Package manager caches are shared across projects and significantly
203+ speed up subsequent environment creation. Only clear them if disk space is critical.
204+
144205## Issue tracker
145206
146207All implementations of Appose use the same issue tracker:
0 commit comments