Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revisionBoth sides next revision
doku:spack-transition [2023/05/05 06:56] – [New approach without environments] jzdoku:spack-transition [2023/05/05 10:35] jz
Line 64: Line 64:
  
 ===== Migration script - "spacksearch" ===== ===== Migration script - "spacksearch" =====
 +
 +==== Method 1 ====
  
 If you need to find a list of packages or modules which correspond to the software you have been using until now, you can use the alias **spacksearch** to do that If you need to find a list of packages or modules which correspond to the software you have been using until now, you can use the alias **spacksearch** to do that
Line 147: Line 149:
 ==> Get some additional info with 'spack find -lvd mypackage', e.g.: ==> Get some additional info with 'spack find -lvd mypackage', e.g.:
 spack find -lvd /upkxxi spack find -lvd /upkxxi
 +</code>
 +
 +
 +==== Method 2 ====
 +
 +Add this function to your ''.bashrc'' file:
 +
 +<code>
 +## spack command wrapper, so we can include our own `spack something`
 +## commands, like `spack search`:
 +spack () {
 +    case "$1" in
 +        "search")
 +            python3 /opt/sw/spack-scripts/search/search.py "$2"
 +            ;;
 +        *)
 +            command spack "$@"
 +    esac
 +}
 </code> </code>
  
  • doku/spack-transition.txt
  • Last modified: 2023/05/17 14:48
  • by msiegel