引用: https://spack.readthedocs.io/en/latest/replace_conda_homebrew.html#updating-cleaning-up-old-packages

$ spack env activate myenv
$ spack mark -i --all
$ spack concretize --fresh --force
$ spack install
$ spack gc