diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2016-06-29 18:23:40 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2016-06-29 18:23:40 -0700 |
commit | cfd380d514606754c4ee3faceb4f00287fce0876 (patch) | |
tree | d9339f87b9c58ec1d2c16accb2854bb741607d15 /lib/spack/docs/packaging_guide.rst | |
parent | eb388306fde0f636e595b5ac5eae37a3c5850f4b (diff) | |
download | spack-cfd380d514606754c4ee3faceb4f00287fce0876.tar.gz spack-cfd380d514606754c4ee3faceb4f00287fce0876.tar.bz2 spack-cfd380d514606754c4ee3faceb4f00287fce0876.tar.xz spack-cfd380d514606754c4ee3faceb4f00287fce0876.zip |
added documentation for automatic caching of resources fetched during installs
Diffstat (limited to 'lib/spack/docs/packaging_guide.rst')
-rw-r--r-- | lib/spack/docs/packaging_guide.rst | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst index 54b886310a..2c3d139d29 100644 --- a/lib/spack/docs/packaging_guide.rst +++ b/lib/spack/docs/packaging_guide.rst @@ -703,6 +703,13 @@ Fetching a revision Subversion branches are handled as part of the directory structure, so you can check out a branch or tag by changing the ``url``. +Automatic caching of files fetched during installation +------------------------------------------------------ + +Spack maintains a cache (described :ref:`here <caching>`) which saves files +retrieved during package installations to avoid re-downloading in the case that +a package is installed with a different specification (but the same version) or +reinstalled on account of a change in the hashing scheme. .. _license: @@ -2618,11 +2625,16 @@ build process will start from scratch. ``spack purge`` ~~~~~~~~~~~~~~~~~ -Cleans up all of Spack's temporary files. Use this to recover disk -space if temporary files from interrupted or failed installs -accumulate in the staging area. This is equivalent to running ``spack -clean`` for every package you have fetched or staged. +Cleans up all of Spack's temporary and cached files. This can be used to +recover disk space if temporary files from interrupted or failed installs +accumulate in the staging area. + +When called with ``--stage`` or ``--all`` (or without arguments, in which case +the default is ``--all``) this removes all staged files; this is equivalent to +running ``spack clean`` for every package you have fetched or staged. +When called with ``--cache`` or ``--all`` this will clear all resources +:ref:`cached <caching>` during installs. Keeping the stage directory on success ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |