spack find
find
command is used to find the specified package. It can take options like -l
for showing hashes for the package and its dependencies, -f
for showing the compiler being used to compile the package and its dependencies.
spack find -l mysql
-- linux-ubuntu22.04-zen3 / gcc@12.3.0 --------------------------
nlf6uyf mysql@8.0.35
==> 1 installed package
nlf6uyf
is the hash.
spack find -f mysql
-- linux-ubuntu22.04-zen3 / gcc@12.3.0 --------------------------
mysql@8.0.35%gcc
==> 1 installed package
These options can be used combined.
spack find -fl mysql
-- linux-ubuntu22.04-zen3 / gcc@12.3.0 --------------------------
nlf6uyf mysql@8.0.35%gcc
==> 1 installed package
To show the dependencies in the package, we can use flag -d
.
spack find -d mysql
-- linux-ubuntu22.04-zen3 / gcc@12.3.0 --------------------------
mysql@8.0.35
bison@3.8.2
diffutils@3.10
m4@1.4.19
libsigsegv@2.14
boost@1.77.0
bzip2@1.0.8
icu4c@74.2
autoconf@2.72
automake@1.16.5
libtool@2.4.7
xz@5.4.6
cmake@3.31.0
curl@8.10.1
nghttp2@1.64.0
doxygen@1.12.0
flex@2.6.3
findutils@4.9.0
python@3.13.0
expat@2.6.4
libbsd@0.12.2
libmd@1.0.4
gdbm@1.23
libffi@3.4.6
readline@8.2
util-linux-uuid@2.40.2
spdlog@1.14.1
fmt@11.0.2
sqlite@3.46.0
gcc-runtime@12.3.0
glibc@2.35
gmake@4.4.1
libedit@3.1-20240808
libevent@2.1.12
libtirpc@1.3.3
krb5@1.21.3
lz4@1.10.0
ncurses@6.5
openssl@3.4.0
ca-certificates-mozilla@2023-05-30
perl@5.40.0
berkeley-db@18.1.40
patchelf@0.17.2
pkgconf@2.2.0
rpcsvc-proto@1.4.4
gettext@0.22.5
libxml2@2.13.4
tar@1.35
pigz@2.8
zlib-ng@2.2.1
zstd@1.5.6
==> 1 installed package
We can use -p
flag to know the path of the installed package.
spack find -p mysql
-- linux-ubuntu22.04-zen3 / gcc@12.3.0 --------------------------
mysql@8.0.35 /home/user/spack/opt/spack/linux-ubuntu22.04-zen3/gcc-12.3.0/mysql-8.0.35-nlf6uyfszhie4qx52ixmoaj76yshtxm4
==> 1 installed package