summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRicharda Butler <39577672+RikkiButler20@users.noreply.github.com>2021-11-02 22:12:08 -0700
committerGitHub <noreply@github.com>2021-11-02 22:12:08 -0700
commit1a3747b2b3a8cd9416f1875ce0f72756630740e6 (patch)
treed07106dcff2571baaacc7b388f1c29c57ebdeecc /lib
parenta382a6c0e25198f610cf3fbb771ae0f1e33d2eef (diff)
downloadspack-1a3747b2b3a8cd9416f1875ce0f72756630740e6.tar.gz
spack-1a3747b2b3a8cd9416f1875ce0f72756630740e6.tar.bz2
spack-1a3747b2b3a8cd9416f1875ce0f72756630740e6.tar.xz
spack-1a3747b2b3a8cd9416f1875ce0f72756630740e6.zip
Update docs how to display loaded modules (#27159)
* Update spack load docs
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/basic_usage.rst19
1 files changed, 17 insertions, 2 deletions
diff --git a/lib/spack/docs/basic_usage.rst b/lib/spack/docs/basic_usage.rst
index 9f3dac94fb..379e58324d 100644
--- a/lib/spack/docs/basic_usage.rst
+++ b/lib/spack/docs/basic_usage.rst
@@ -868,8 +868,9 @@ your path:
These commands will add appropriate directories to your ``PATH``,
``MANPATH``, ``CPATH``, and ``LD_LIBRARY_PATH`` according to the
:ref:`prefix inspections <customize-env-modifications>` defined in your
-modules configuration. When you no longer want to use a package, you
-can type unload or unuse similarly:
+modules configuration.
+When you no longer want to use a package, you can type unload or
+unuse similarly:
.. code-block:: console
@@ -910,6 +911,19 @@ first ``libelf`` above, you would run:
$ spack load /qmm4kso
+To see which packages that you have loaded to your enviornment you would
+use ``spack find --loaded``.
+
+.. code-block:: console
+
+ $ spack find --loaded
+ ==> 2 installed packages
+ -- linux-debian7 / gcc@4.4.7 ------------------------------------
+ libelf@0.8.13
+
+ -- linux-debian7 / intel@15.0.0 ---------------------------------
+ libelf@0.8.13
+
We'll learn more about Spack's spec syntax in the next section.
@@ -1649,6 +1663,7 @@ and it will be added to the ``PYTHONPATH`` in your current shell:
Now ``import numpy`` will succeed for as long as you keep your current
session open.
+The loaded packages can be checked using ``spack find --loaded``
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Loading Extensions via Modules