Caching downloads
uniget supports caching of downloaded tools. This can be used to improve re-install cycles during testing.
Supported cache backends:
- None (default)
- Filesystem
- Docker
- ContainerD
Selecting a cache backend by...
- Either set the environment variable
UNIGET_CACHEto one ofnone,file,dockerorcontainerd - Or use the CLI flag
--cachewith one ofnone,file,dockerorcontainerd
Optionally set UNIGET_CACHE_DIRECTORY or --cache-directory to choose where the file cache is stored. Default is var/cache/uniget/downloads in global context and ${XDG_CACHE_HOME:-$HOME/.cache}/uniget/downloads in user context.
Optionally set UNIGET_CACHE_RETENTION or --cache-retention to the retention in seconds. Defaults to 86400 (24h).
uniget expects that the necessary infrastructure for the selected backend is available:
docker: The Docker daemon must be running and the current user must be able to connectcontainerd: The ContainerD daemon must be running and the current user must be able to connect