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

## インストール

https://conda-forge.org/download/
https://github.com/conda-forge/miniforge/?tab=readme-ov-file#install

```
apt update
apt install wget
wget "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh"
bash Miniforge3-$(uname)-$(uname -m).sh
```

## 状態確認

```
# conda list --show-channel-urls
# packages in environment at /root/miniforge3:
#
# Name                    Version                   Build  Channel
_libgcc_mutex             0.1                 conda_forge    conda-forge
_openmp_mutex             4.5                       2_gnu    conda-forge
archspec                  0.2.3              pyhd8ed1ab_0    conda-forge
boltons                   24.0.0             pyhd8ed1ab_0    conda-forge
brotli-python             1.1.0           py312h2ec8cdc_2    conda-forge
bzip2                     1.0.8                h4bc722e_7    conda-forge
c-ares                    1.32.3               h4bc722e_0    conda-forge
ca-certificates           2024.8.30            hbcca054_0    conda-forge
certifi                   2024.8.30          pyhd8ed1ab_0    conda-forge
cffi                      1.17.0          py312h06ac9bb_1    conda-forge
charset-normalizer        3.3.2              pyhd8ed1ab_0    conda-forge
colorama                  0.4.6              pyhd8ed1ab_0    conda-forge
conda                     24.7.1          py312h7900ff3_0    conda-forge
conda-libmamba-solver     24.7.0             pyhd8ed1ab_0    conda-forge
conda-package-handling    2.3.0              pyh7900ff3_0    conda-forge
conda-package-streaming   0.10.0             pyhd8ed1ab_0    conda-forge
distro                    1.9.0              pyhd8ed1ab_0    conda-forge
fmt                       10.2.1               h00ab1b0_0    conda-forge
frozendict                2.4.4           py312h9a8786e_0    conda-forge
h2                        4.1.0              pyhd8ed1ab_0    conda-forge
hpack                     4.0.0              pyh9f0ad1d_0    conda-forge
hyperframe                6.0.1              pyhd8ed1ab_0    conda-forge
icu                       75.1                 he02047a_0    conda-forge
idna                      3.8                pyhd8ed1ab_0    conda-forge
jsonpatch                 1.33               pyhd8ed1ab_0    conda-forge
jsonpointer               3.0.0           py312h7900ff3_1    conda-forge
keyutils                  1.6.1                h166bdaf_0    conda-forge
krb5                      1.21.3               h659f571_0    conda-forge
ld_impl_linux-64          2.40                 hf3520f5_7    conda-forge
libarchive                3.7.4                hfca40fe_0    conda-forge
libcurl                   8.9.1                hdb1bdb2_0    conda-forge
libedit                   3.1.20191231         he28a2e2_2    conda-forge
libev                     4.33                 hd590300_2    conda-forge
libexpat                  2.6.2                h59595ed_0    conda-forge
libffi                    3.4.2                h7f98852_5    conda-forge
libgcc                    14.1.0               h77fa898_1    conda-forge
libgcc-ng                 14.1.0               h69a702a_1    conda-forge
libgomp                   14.1.0               h77fa898_1    conda-forge
libiconv                  1.17                 hd590300_2    conda-forge
libmamba                  1.5.9                h4cc3d14_0    conda-forge
libmambapy                1.5.9           py312h7fb9e8e_0    conda-forge
libnghttp2                1.58.0               h47da74e_1    conda-forge
libnsl                    2.0.1                hd590300_0    conda-forge
libsolv                   0.7.30               h3509ff9_0    conda-forge
libsqlite                 3.46.1               hadc24fc_0    conda-forge
libssh2                   1.11.0               h0841786_0    conda-forge
libstdcxx                 14.1.0               hc0a3c3a_1    conda-forge
libstdcxx-ng              14.1.0               h4852527_1    conda-forge
libuuid                   2.38.1               h0b41bf4_0    conda-forge
libxcrypt                 4.4.36               hd590300_1    conda-forge
libxml2                   2.12.7               he7c6b58_4    conda-forge
libzlib                   1.3.1                h4ab18f5_1    conda-forge
lz4-c                     1.9.4                hcb278e6_0    conda-forge
lzo                       2.10              hd590300_1001    conda-forge
mamba                     1.5.9           py312h9460a1c_0    conda-forge
menuinst                  2.1.2           py312h7900ff3_1    conda-forge
ncurses                   6.5                  he02047a_1    conda-forge
openssl                   3.3.1                hb9d3cd8_3    conda-forge
packaging                 24.1               pyhd8ed1ab_0    conda-forge
pip                       24.2               pyh8b19718_1    conda-forge
platformdirs              4.2.2              pyhd8ed1ab_0    conda-forge
pluggy                    1.5.0              pyhd8ed1ab_0    conda-forge
pybind11-abi              4                    hd8ed1ab_3    conda-forge
pycosat                   0.6.6           py312h98912ed_0    conda-forge
pycparser                 2.22               pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1              pyha2e5f31_6    conda-forge
python                    3.12.5          h2ad013b_0_cpython    conda-forge
python_abi                3.12                    5_cp312    conda-forge
readline                  8.2                  h8228510_1    conda-forge
reproc                    14.2.4.post0         hd590300_1    conda-forge
reproc-cpp                14.2.4.post0         h59595ed_1    conda-forge
requests                  2.32.3             pyhd8ed1ab_0    conda-forge
ruamel.yaml               0.18.6          py312h98912ed_0    conda-forge
ruamel.yaml.clib          0.2.8           py312h98912ed_0    conda-forge
setuptools                73.0.1             pyhd8ed1ab_0    conda-forge
tk                        8.6.13          noxft_h4845f30_101    conda-forge
tqdm                      4.66.5             pyhd8ed1ab_0    conda-forge
truststore                0.9.2              pyhd8ed1ab_0    conda-forge
tzdata                    2024a                h8827d51_1    conda-forge
urllib3                   2.2.2              pyhd8ed1ab_1    conda-forge
wheel                     0.44.0             pyhd8ed1ab_0    conda-forge
xz                        5.2.6                h166bdaf_0    conda-forge
yaml-cpp                  0.8.0                h59595ed_0    conda-forge
zstandard                 0.23.0          py312hef9b889_1    conda-forge
zstd                      1.5.6                ha6fb4c9_0    conda-forge

# 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://conda.anaconda.org/conda-forge/linux-64/_libgcc_mutex-0.1-conda_forge.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ca-certificates-2024.8.30-hbcca054_0.conda
https://conda.anaconda.org/conda-forge/linux-64/ld_impl_linux-64-2.40-hf3520f5_7.conda
https://conda.anaconda.org/conda-forge/noarch/pybind11-abi-4-hd8ed1ab_3.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/python_abi-3.12-5_cp312.conda
https://conda.anaconda.org/conda-forge/noarch/tzdata-2024a-h8827d51_1.conda
https://conda.anaconda.org/conda-forge/linux-64/libgomp-14.1.0-h77fa898_1.conda
https://conda.anaconda.org/conda-forge/linux-64/_openmp_mutex-4.5-2_gnu.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libgcc-14.1.0-h77fa898_1.conda
https://conda.anaconda.org/conda-forge/linux-64/libgcc-ng-14.1.0-h69a702a_1.conda
https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-14.1.0-hc0a3c3a_1.conda
https://conda.anaconda.org/conda-forge/linux-64/bzip2-1.0.8-h4bc722e_7.conda
https://conda.anaconda.org/conda-forge/linux-64/c-ares-1.32.3-h4bc722e_0.conda
https://conda.anaconda.org/conda-forge/linux-64/keyutils-1.6.1-h166bdaf_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libev-4.33-hd590300_2.conda
https://conda.anaconda.org/conda-forge/linux-64/libexpat-2.6.2-h59595ed_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libffi-3.4.2-h7f98852_5.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libiconv-1.17-hd590300_2.conda
https://conda.anaconda.org/conda-forge/linux-64/libnsl-2.0.1-hd590300_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libstdcxx-ng-14.1.0-h4852527_1.conda
https://conda.anaconda.org/conda-forge/linux-64/libuuid-2.38.1-h0b41bf4_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libxcrypt-4.4.36-hd590300_1.conda
https://conda.anaconda.org/conda-forge/linux-64/libzlib-1.3.1-h4ab18f5_1.conda
https://conda.anaconda.org/conda-forge/linux-64/lzo-2.10-hd590300_1001.conda
https://conda.anaconda.org/conda-forge/linux-64/ncurses-6.5-he02047a_1.conda
https://conda.anaconda.org/conda-forge/linux-64/openssl-3.3.1-hb9d3cd8_3.conda
https://conda.anaconda.org/conda-forge/linux-64/reproc-14.2.4.post0-hd590300_1.conda
https://conda.anaconda.org/conda-forge/linux-64/xz-5.2.6-h166bdaf_0.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/fmt-10.2.1-h00ab1b0_0.conda
https://conda.anaconda.org/conda-forge/linux-64/icu-75.1-he02047a_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libedit-3.1.20191231-he28a2e2_2.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/libnghttp2-1.58.0-h47da74e_1.conda
https://conda.anaconda.org/conda-forge/linux-64/libsolv-0.7.30-h3509ff9_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libsqlite-3.46.1-hadc24fc_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libssh2-1.11.0-h0841786_0.conda
https://conda.anaconda.org/conda-forge/linux-64/lz4-c-1.9.4-hcb278e6_0.conda
https://conda.anaconda.org/conda-forge/linux-64/readline-8.2-h8228510_1.conda
https://conda.anaconda.org/conda-forge/linux-64/reproc-cpp-14.2.4.post0-h59595ed_1.conda
https://conda.anaconda.org/conda-forge/linux-64/tk-8.6.13-noxft_h4845f30_101.conda
https://conda.anaconda.org/conda-forge/linux-64/yaml-cpp-0.8.0-h59595ed_0.conda
https://conda.anaconda.org/conda-forge/linux-64/zstd-1.5.6-ha6fb4c9_0.conda
https://conda.anaconda.org/conda-forge/linux-64/krb5-1.21.3-h659f571_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libxml2-2.12.7-he7c6b58_4.conda
https://conda.anaconda.org/conda-forge/linux-64/python-3.12.5-h2ad013b_0_cpython.conda
https://conda.anaconda.org/conda-forge/linux-64/libarchive-3.7.4-hfca40fe_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libcurl-8.9.1-hdb1bdb2_0.conda
https://conda.anaconda.org/conda-forge/linux-64/menuinst-2.1.2-py312h7900ff3_1.conda
https://conda.anaconda.org/conda-forge/noarch/archspec-0.2.3-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/boltons-24.0.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/brotli-python-1.1.0-py312h2ec8cdc_2.conda
https://conda.anaconda.org/conda-forge/noarch/certifi-2024.8.30-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.3.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/distro-1.9.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/frozendict-2.4.4-py312h9a8786e_0.conda
https://conda.anaconda.org/conda-forge/noarch/hpack-4.0.0-pyh9f0ad1d_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/hyperframe-6.0.1-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/idna-3.8-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/jsonpointer-3.0.0-py312h7900ff3_1.conda
https://conda.anaconda.org/conda-forge/linux-64/libmamba-1.5.9-h4cc3d14_0.conda
https://conda.anaconda.org/conda-forge/noarch/packaging-24.1-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.2.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/pluggy-1.5.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/pycosat-0.6.6-py312h98912ed_0.conda
https://conda.anaconda.org/conda-forge/noarch/pycparser-2.22-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyha2e5f31_6.tar.bz2
https://conda.anaconda.org/conda-forge/linux-64/ruamel.yaml.clib-0.2.8-py312h98912ed_0.conda
https://conda.anaconda.org/conda-forge/noarch/setuptools-73.0.1-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/truststore-0.9.2-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/wheel-0.44.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/cffi-1.17.0-py312h06ac9bb_1.conda
https://conda.anaconda.org/conda-forge/noarch/h2-4.1.0-pyhd8ed1ab_0.tar.bz2
https://conda.anaconda.org/conda-forge/noarch/jsonpatch-1.33-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/libmambapy-1.5.9-py312h7fb9e8e_0.conda
https://conda.anaconda.org/conda-forge/noarch/pip-24.2-pyh8b19718_1.conda
https://conda.anaconda.org/conda-forge/linux-64/ruamel.yaml-0.18.6-py312h98912ed_0.conda
https://conda.anaconda.org/conda-forge/noarch/tqdm-4.66.5-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/zstandard-0.23.0-py312hef9b889_1.conda
https://conda.anaconda.org/conda-forge/noarch/conda-package-streaming-0.10.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/noarch/urllib3-2.2.2-pyhd8ed1ab_1.conda
https://conda.anaconda.org/conda-forge/noarch/conda-package-handling-2.3.0-pyh7900ff3_0.conda
https://conda.anaconda.org/conda-forge/noarch/requests-2.32.3-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/conda-24.7.1-py312h7900ff3_0.conda
https://conda.anaconda.org/conda-forge/noarch/conda-libmamba-solver-24.7.0-pyhd8ed1ab_0.conda
https://conda.anaconda.org/conda-forge/linux-64/mamba-1.5.9-py312h9460a1c_0.conda
```

## Syft結果

```
$ syft -q u24_miniconda
$ syft -q u24_miniforge
NAME                     VERSION                      TYPE
Simple Launcher          1.1.0.14                     dotnet  (+5 duplicates)
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                  24.0.0                       python
brotli                   1.1.0                        python
bsdutils                 1:2.39.3-9ubuntu6.1          deb
ca-certificates          20240203                     deb
certifi                  2024.8.30                    python
cffi                     1.17.0                       python
charset-normalizer       3.3.2                        python
colorama                 0.4.6                        python
conda                    24.7.1                       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
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.4                        python
gcc-14-base              14-20240412-0ubuntu1         deb
gpgv                     2.4.4-2ubuntu17              deb
grep                     3.11-4build1                 deb
gzip                     1.12-1ubuntu3                deb
h2                       4.1.0                        python
hostname                 3.23+nmu2ubuntu2             deb
hpack                    4.0.0                        python
hyperframe               6.0.1                        python
idna                     3.8                          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              3.0.0                        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.9                        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
mamba                    1.5.9                        python
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.3.1                        binary
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             4.2.2                        python  (+1 duplicate)
pluggy                   1.5.0                        python
procps                   2:4.0.4-4ubuntu3             deb
publicsuffix             20231001.0357-0.1            deb
pycosat                  0.6.6                        python
pycparser                2.22                         python
pysocks                  1.7.1                        python
python                   3.12.5                       binary
requests                 2.32.3                       python
ruamel-yaml              0.18.6                       python
ruamel-yaml-clib         0.2.8                        python
sed                      4.9-2build1                  deb
sensible-utils           0.0.22                       deb
setuptools               73.0.1                       python
sysvinit-utils           3.08-6ubuntu3                deb
tar                      1.35+dfsg-3build1            deb
tomli                    2.0.1                        python
tqdm                     4.66.5                       python
truststore               0.9.2                        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
wheel                    0.44.0                       python
zipp                     3.19.2                       python
zlib1g                   1:1.3.dfsg-3.1ubuntu2.1      deb
zstandard                0.23.0                       python
```

## trivy 結果

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