Ubuntu 24.04 に Miniconda で Conda をインストールしてスキャナで検出

## インストール

https://docs.anaconda.com/miniconda/miniconda-install/
https://docs.anaconda.com/miniconda/miniconda-other-installer-links/

```
apt update
apt install wget
wget https://repo.anaconda.com/miniconda/Miniconda3-py312_24.7.1-0-Linux-x86_64.sh
bash Miniconda3-py312_24.7.1-0-Linux-x86_64.sh
```

## 状態確認

```
# conda list --show-channel-urls
# packages in environment at /root/miniconda3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                        main    defaults
_openmp_mutex             5.1                       1_gnu    defaults
anaconda-anon-usage       0.4.4           py312hfc0e8ea_100    defaults
archspec                  0.2.3              pyhd3eb1b0_0    defaults
boltons                   23.0.0          py312h06a4308_0    defaults
brotli-python             1.0.9           py312h6a678d5_8    defaults
bzip2                     1.0.8                h5eee18b_6    defaults
c-ares                    1.19.1               h5eee18b_0    defaults
ca-certificates           2024.7.2             h06a4308_0    defaults
certifi                   2024.7.4        py312h06a4308_0    defaults
cffi                      1.16.0          py312h5eee18b_1    defaults
charset-normalizer        3.3.2              pyhd3eb1b0_0    defaults
conda                     24.7.1          py312h06a4308_0    defaults
conda-content-trust       0.2.0           py312h06a4308_1    defaults
conda-libmamba-solver     24.7.0             pyhd3eb1b0_0    defaults
conda-package-handling    2.3.0           py312h06a4308_0    defaults
conda-package-streaming   0.10.0          py312h06a4308_0    defaults
cryptography              42.0.5          py312hdda0065_1    defaults
distro                    1.9.0           py312h06a4308_0    defaults
expat                     2.6.2                h6a678d5_0    defaults
fmt                       9.1.0                hdb19cb5_1    defaults
frozendict                2.4.2           py312h06a4308_0    defaults
icu                       73.1                 h6a678d5_0    defaults
idna                      3.7             py312h06a4308_0    defaults
jsonpatch                 1.33            py312h06a4308_1    defaults
jsonpointer               2.1                pyhd3eb1b0_0    defaults
krb5                      1.20.1               h143b758_1    defaults
ld_impl_linux-64          2.38                 h1181459_1    defaults
libarchive                3.6.2                hfab0078_4    defaults
libcurl                   8.7.1                h251f7ec_0    defaults
libedit                   3.1.20230828         h5eee18b_0    defaults
libev                     4.33                 h7f8727e_1    defaults
libffi                    3.4.4                h6a678d5_1    defaults
libgcc-ng                 11.2.0               h1234567_1    defaults
libgomp                   11.2.0               h1234567_1    defaults
libmamba                  1.5.8                hfe524e5_2    defaults
libmambapy                1.5.8           py312h2dafd23_2    defaults
libnghttp2                1.57.0               h2d74bed_0    defaults
libsolv                   0.7.24               he621ea3_1    defaults
libssh2                   1.11.0               h251f7ec_0    defaults
libstdcxx-ng              11.2.0               h1234567_1    defaults
libuuid                   1.41.5               h5eee18b_0    defaults
libxml2                   2.13.1               hfdd30dd_2    defaults
lz4-c                     1.9.4                h6a678d5_1    defaults
menuinst                  2.1.2           py312h06a4308_0    defaults
ncurses                   6.4                  h6a678d5_0    defaults
openssl                   3.0.14               h5eee18b_0    defaults
packaging                 24.1            py312h06a4308_0    defaults
pcre2                     10.42                hebb0a14_1    defaults
pip                       24.2            py312h06a4308_0    defaults
platformdirs              3.10.0          py312h06a4308_0    defaults
pluggy                    1.0.0           py312h06a4308_1    defaults
pybind11-abi              5                    hd3eb1b0_0    defaults
pycosat                   0.6.6           py312h5eee18b_1    defaults
pycparser                 2.21               pyhd3eb1b0_0    defaults
pysocks                   1.7.1           py312h06a4308_0    defaults
python                    3.12.4               h5148396_1    defaults
readline                  8.2                  h5eee18b_0    defaults
reproc                    14.2.4               h6a678d5_2    defaults
reproc-cpp                14.2.4               h6a678d5_2    defaults
requests                  2.32.3          py312h06a4308_0    defaults
ruamel.yaml               0.17.21         py312h5eee18b_0    defaults
setuptools                72.1.0          py312h06a4308_0    defaults
sqlite                    3.45.3               h5eee18b_0    defaults
tk                        8.6.14               h39e8969_0    defaults
tqdm                      4.66.4          py312he106c6f_0    defaults
truststore                0.8.0           py312h06a4308_0    defaults
tzdata                    2024a                h04d1e81_0    defaults
urllib3                   2.2.2           py312h06a4308_0    defaults
wheel                     0.43.0          py312h06a4308_0    defaults
xz                        5.4.6                h5eee18b_1    defaults
yaml-cpp                  0.8.0                h6a678d5_1    defaults
zlib                      1.2.13               h5eee18b_1    defaults
zstandard                 0.22.0          py312h2c38b39_0    defaults
zstd                      1.5.5                hc292b87_2    defaults

# conda list --explicit
# This file may be used to create an environment using:
# $ conda create --name <env> --file <this file>
# platform: linux-64
@EXPLICIT
https://repo.anaconda.com/pkgs/main/linux-64/_libgcc_mutex-0.1-main.conda
https://repo.anaconda.com/pkgs/main/linux-64/ca-certificates-2024.7.2-h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/ld_impl_linux-64-2.38-h1181459_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/libstdcxx-ng-11.2.0-h1234567_1.conda
https://repo.anaconda.com/pkgs/main/noarch/pybind11-abi-5-hd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/noarch/tzdata-2024a-h04d1e81_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/libgomp-11.2.0-h1234567_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/_openmp_mutex-5.1-1_gnu.conda
https://repo.anaconda.com/pkgs/main/linux-64/libgcc-ng-11.2.0-h1234567_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/bzip2-1.0.8-h5eee18b_6.conda
https://repo.anaconda.com/pkgs/main/linux-64/c-ares-1.19.1-h5eee18b_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/expat-2.6.2-h6a678d5_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/fmt-9.1.0-hdb19cb5_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/icu-73.1-h6a678d5_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/libev-4.33-h7f8727e_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/libffi-3.4.4-h6a678d5_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/libuuid-1.41.5-h5eee18b_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/lz4-c-1.9.4-h6a678d5_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/ncurses-6.4-h6a678d5_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/openssl-3.0.14-h5eee18b_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/reproc-14.2.4-h6a678d5_2.conda
https://repo.anaconda.com/pkgs/main/linux-64/xz-5.4.6-h5eee18b_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/yaml-cpp-0.8.0-h6a678d5_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/zlib-1.2.13-h5eee18b_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/libedit-3.1.20230828-h5eee18b_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/libnghttp2-1.57.0-h2d74bed_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/libssh2-1.11.0-h251f7ec_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/libxml2-2.13.1-hfdd30dd_2.conda
https://repo.anaconda.com/pkgs/main/linux-64/pcre2-10.42-hebb0a14_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/readline-8.2-h5eee18b_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/reproc-cpp-14.2.4-h6a678d5_2.conda
https://repo.anaconda.com/pkgs/main/linux-64/tk-8.6.14-h39e8969_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/zstd-1.5.5-hc292b87_2.conda
https://repo.anaconda.com/pkgs/main/linux-64/krb5-1.20.1-h143b758_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/libarchive-3.6.2-hfab0078_4.conda
https://repo.anaconda.com/pkgs/main/linux-64/libsolv-0.7.24-he621ea3_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/sqlite-3.45.3-h5eee18b_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/libcurl-8.7.1-h251f7ec_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/python-3.12.4-h5148396_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/libmamba-1.5.8-hfe524e5_2.conda
https://repo.anaconda.com/pkgs/main/linux-64/menuinst-2.1.2-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/anaconda-anon-usage-0.4.4-py312hfc0e8ea_100.conda
https://repo.anaconda.com/pkgs/main/noarch/archspec-0.2.3-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/boltons-23.0.0-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/brotli-python-1.0.9-py312h6a678d5_8.conda
https://repo.anaconda.com/pkgs/main/linux-64/certifi-2024.7.4-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/noarch/charset-normalizer-3.3.2-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/distro-1.9.0-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/frozendict-2.4.2-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/idna-3.7-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/noarch/jsonpointer-2.1-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/libmambapy-1.5.8-py312h2dafd23_2.conda
https://repo.anaconda.com/pkgs/main/linux-64/packaging-24.1-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/platformdirs-3.10.0-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/pluggy-1.0.0-py312h06a4308_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/pycosat-0.6.6-py312h5eee18b_1.conda
https://repo.anaconda.com/pkgs/main/noarch/pycparser-2.21-pyhd3eb1b0_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/pysocks-1.7.1-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/ruamel.yaml-0.17.21-py312h5eee18b_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/setuptools-72.1.0-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/tqdm-4.66.4-py312he106c6f_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/truststore-0.8.0-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/wheel-0.43.0-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/cffi-1.16.0-py312h5eee18b_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/jsonpatch-1.33-py312h06a4308_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/pip-24.2-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/urllib3-2.2.2-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/cryptography-42.0.5-py312hdda0065_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/requests-2.32.3-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/zstandard-0.22.0-py312h2c38b39_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/conda-content-trust-0.2.0-py312h06a4308_1.conda
https://repo.anaconda.com/pkgs/main/linux-64/conda-package-streaming-0.10.0-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/conda-package-handling-2.3.0-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/linux-64/conda-24.7.1-py312h06a4308_0.conda
https://repo.anaconda.com/pkgs/main/noarch/conda-libmamba-solver-24.7.0-pyhd3eb1b0_0.conda
```

## Syft結果

```
$ syft -q u24_miniconda
NAME                     VERSION                      TYPE
anaconda-anon-usage      0.4.4                        python
apt                      2.7.14build2                 deb
archspec                 0.2.3                        python
autocommand              2.2.2                        python
backports-tarfile        1.2.0                        python
base-files               13ubuntu10.1                 deb
base-passwd              3.6.3build1                  deb
bash                     5.2.21-2ubuntu4              deb
boltons                  23.0.0                       python
brotli                   1.0.9                        python
bsdutils                 1:2.39.3-9ubuntu6.1          deb
ca-certificates          20240203                     deb
certifi                  2024.7.4                     python
cffi                     1.16.0                       python
charset-normalizer       3.3.2                        python
conda                    24.7.1                       python
conda-content-trust      0.2.0                        python
conda-libmamba-solver    24.7.0                       python
conda-package-handling   2.3.0                        python
conda-package-streaming  0.10.0                       python
coreutils                9.4-3ubuntu6                 deb
cryptography             42.0.5                       python
dash                     0.5.12-6ubuntu5              deb
debconf                  1.5.86ubuntu1                deb
debianutils              5.17build1                   deb
diffutils                1:3.10-1build1               deb
distro                   1.9.0                        python
dpkg                     1.22.6ubuntu6.1              deb
e2fsprogs                1.47.0-2.4~exp1ubuntu4.1     deb
findutils                4.9.0-5build1                deb
frozendict               2.4.2                        python
gcc-14-base              14-20240412-0ubuntu1         deb
gpgv                     2.4.4-2ubuntu17              deb
grep                     3.11-4build1                 deb
gzip                     1.12-1ubuntu3                deb
hostname                 3.23+nmu2ubuntu2             deb
idna                     3.7                          python
importlib-metadata       8.0.0                        python
importlib-resources      6.4.0                        python
inflect                  7.3.1                        python
init-system-helpers      1.66ubuntu1                  deb
jaraco-context           5.3.0                        python
jaraco-functools         4.0.1                        python
jaraco-text              3.12.1                       python
jsonpatch                1.33                         python
jsonpointer              2.1                          python
libacl1                  2.3.2-1build1                deb
libapt-pkg6.0t64         2.7.14build2                 deb
libassuan0               2.5.6-1build1                deb
libattr1                 1:2.5.2-1build1              deb
libaudit-common          1:3.1.2-2.1build1            deb
libaudit1                1:3.1.2-2.1build1            deb
libblkid1                2.39.3-9ubuntu6.1            deb
libbz2-1.0               1.0.8-5.1build0.1            deb
libc-bin                 2.39-0ubuntu8.3              deb
libc6                    2.39-0ubuntu8.3              deb
libcap-ng0               0.8.4-2build2                deb
libcap2                  1:2.66-5ubuntu2              deb
libcom-err2              1.47.0-2.4~exp1ubuntu4.1     deb
libcrypt1                1:4.4.36-4build1             deb
libdb5.3t64              5.3.28+dfsg2-7               deb
libdebconfclient0        0.271ubuntu3                 deb
libext2fs2t64            1.47.0-2.4~exp1ubuntu4.1     deb
libffi8                  3.4.6-1build1                deb
libgcc-s1                14-20240412-0ubuntu1         deb
libgcrypt20              1.10.3-2build1               deb
libgmp10                 2:6.3.0+dfsg-2ubuntu6        deb
libgnutls30t64           3.8.3-1.1ubuntu3.2           deb
libgpg-error0            1.47-3build2                 deb
libhogweed6t64           3.9.1-2.2build1.1            deb
libidn2-0                2.3.7-2build1                deb
liblz4-1                 1.9.4-1build1.1              deb
liblzma5                 5.6.1+really5.4.5-1build0.1  deb
libmambapy               1.5.8                        python
libmd0                   1.1.0-2build1                deb
libmount1                2.39.3-9ubuntu6.1            deb
libncursesw6             6.4+20240113-1ubuntu2        deb
libnettle8t64            3.9.1-2.2build1.1            deb
libnpth0t64              1.6-3.1build1                deb
libp11-kit0              0.25.3-4ubuntu2.1            deb
libpam-modules           1.5.3-5ubuntu5.1             deb
libpam-modules-bin       1.5.3-5ubuntu5.1             deb
libpam-runtime           1.5.3-5ubuntu5.1             deb
libpam0g                 1.5.3-5ubuntu5.1             deb
libpcre2-8-0             10.42-4ubuntu2               deb
libproc2-0               2:4.0.4-4ubuntu3             deb
libpsl5t64               0.21.2-1.1build1             deb
libseccomp2              2.5.5-1ubuntu3.1             deb
libselinux1              3.5-2ubuntu2                 deb
libsemanage-common       3.5-1build5                  deb
libsemanage2             3.5-1build5                  deb
libsepol2                3.5-2build1                  deb
libsmartcols1            2.39.3-9ubuntu6.1            deb
libss2                   1.47.0-2.4~exp1ubuntu4.1     deb
libssl3t64               3.0.13-0ubuntu3.4            deb
libstdc++6               14-20240412-0ubuntu1         deb
libsystemd0              255.4-1ubuntu8.4             deb
libtasn1-6               4.19.0-3build1               deb
libtinfo6                6.4+20240113-1ubuntu2        deb
libudev1                 255.4-1ubuntu8.4             deb
libunistring5            1.1-2build1                  deb
libuuid1                 2.39.3-9ubuntu6.1            deb
libxxhash0               0.8.2-2build1                deb
libzstd1                 1.5.5+dfsg2-2build1.1        deb
login                    1:4.13+dfsg1-4ubuntu3        deb
logsave                  1.47.0-2.4~exp1ubuntu4.1     deb
mawk                     1.3.4.20240123-1build1       deb
menuinst                 2.1.2                        python
more-itertools           10.3.0                       python
mount                    2.39.3-9ubuntu6.1            deb
my-test-package          1.0                          python
ncurses-base             6.4+20240113-1ubuntu2        deb
ncurses-bin              6.4+20240113-1ubuntu2        deb
openssl                  3.0.13-0ubuntu3.4            deb
openssl                  3.0.14                       binary
ordered-set              4.1.0                        python
packaging                24.1                         python  (+1 duplicate)
passwd                   1:4.13+dfsg1-4ubuntu3        deb
perl-base                5.38.2-3.2build2             deb
pip                      24.2                         python
platformdirs             3.10.0                       python
platformdirs             4.2.2                        python
pluggy                   1.0.0                        python
procps                   2:4.0.4-4ubuntu3             deb
publicsuffix             20231001.0357-0.1            deb
pycosat                  0.6.6                        python
pycparser                2.21                         python
pysocks                  1.7.1                        python
python                   3.12.4                       binary
requests                 2.32.3                       python
ruamel-yaml              0.17.21                      python
sed                      4.9-2build1                  deb
sensible-utils           0.0.22                       deb
setuptools               72.1.0                       python
sysvinit-utils           3.08-6ubuntu3                deb
tar                      1.35+dfsg-3build1            deb
tomli                    2.0.1                        python
tqdm                     4.66.4                       python
truststore               0.8.0                        python
typeguard                4.3.0                        python
typing-extensions        4.12.2                       python
ubuntu-keyring           2023.11.28.1                 deb
urllib3                  2.2.2                        python
util-linux               2.39.3-9ubuntu6.1            deb
wget                     1.21.4-1ubuntu4.1            deb
wheel                    0.43.0                       python  (+1 duplicate)
zipp                     3.19.2                       python
zlib1g                   1:1.3.dfsg-3.1ubuntu2.1      deb
zstandard                0.22.0                       python
```

## trivy 結果

（後で更新するかも）
conda対応しているようだけど、うまくできなかった