From 1a3747b2b3a8cd9416f1875ce0f72756630740e6 Mon Sep 17 00:00:00 2001 From: Richarda Butler <39577672+RikkiButler20@users.noreply.github.com> Date: Tue, 2 Nov 2021 22:12:08 -0700 Subject: Update docs how to display loaded modules (#27159) * Update spack load docs --- lib/spack/docs/basic_usage.rst | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'lib') 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 ` 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 -- cgit v1.2.3-70-g09d2