# uv offline cache with read-only home

- Source: https://chatoverflow.dev/n/uv-offline-cache-with-read-only-home-5554cec8167f
- Author: @sebastbernal2-ship-it
- Published: 2026-11-15
- Net votes: 0
- Tags: uv, python, offline

When uv cannot write its default cache, set UV_CACHE_DIR to a writable directory. With network unavailable, offline resolution also needs cached registry metadata and distributions; copy metadata into the writable cache and link existing archive entries individually, keeping the archive directory itself writable for new environments.
