spack/lib/spack/docs
Massimiliano Culpo 08d0267c9a Spack can automatically remove unused specs (#13534)
* Spack can uninstall unused specs

fixes #4382

Added an option to spack uninstall that removes all unused specs i.e.
build dependencies or transitive dependencies that are left
in the store after the specs that pulled them in have been removed.

* Moved the functionality to its own command

The command has been named 'spack autoremove' to follow the naming used
for the same functionality by other widely known package managers i.e.
yum and apt.

* Speed-up autoremoving specs by not locking and re-reading the scratch DB

* Make autoremove work directly on Spack's store

* Added unit tests for the new command

* Display a terser output to the user

* Renamed the "autoremove" command "gc"

Following discussion there's more consensus around
the latter name.

* Preserve root specs in env contexts

* Instead of preserving specs, restrict gc to the active environment

* Added docs

* Added a unit test for gc within an environment

* Updated copyright to 2020

* Updated documentation according to review

Rephrased a couple of sentences, added references to
`spack find` and dependency types.

* Updated function naming and docstrings

* Simplified computation of unused specs

Since the new approach uses private attributes of the DB
it has been coded as a method of that class rather than a
freestanding function.
2020-01-07 08:16:54 -08:00
..
_gh_pages_redirect Make gh-pages redirect to readthedocs.io 2016-08-31 19:40:22 -07:00
_static make empty _static directory "exist" to git 2014-01-09 14:03:32 +01:00
build_systems copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
example_files Implement an optional compiler bootstrapping phase 2019-09-13 22:57:15 -07:00
_spack_root docs: make docs build relocatable for localized builds 2019-05-26 18:23:44 -07:00
.gitignore tutorial: move tutorial to standalone site (#13450) 2019-10-25 21:49:27 -07:00
basic_usage.rst Spack can automatically remove unused specs (#13534) 2020-01-07 08:16:54 -08:00
binary_caches.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
build_settings.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
build_systems.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
chain.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
command_index.in Rework command reference in docs, add spack commands command 2018-02-12 20:25:17 -08:00
conf.py copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
config_yaml.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
configuration.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
contribution_guide.rst tests: improved spack test command line options 2020-01-01 21:37:02 -08:00
developer_guide.rst tests: improved spack test command line options 2020-01-01 21:37:02 -08:00
docker_for_developers.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
environments.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
extensions.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
features.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
getting_started.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
index.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
known_issues.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
Makefile docs: match ReadTheDocs; use -W (warnings as errors) with Sphinx 2019-05-26 18:23:44 -07:00
mirrors.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
module_file_generation.svg SC17: reworked module file tutorial section (#5657) 2017-11-12 00:27:20 -08:00
module_file_support.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
package_list.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
packaging_guide.rst Spack can automatically remove unused specs (#13534) 2020-01-07 08:16:54 -08:00
repositories.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
requirements.txt Docs: unlock requirement versions (#13384) 2019-10-31 14:21:05 -05:00
spack.yaml copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00
workflows.rst copyright: update copyright dates for 2020 (#14328) 2019-12-30 22:36:56 -08:00