========
Packages
========

Searching for packages
======================

If you want to know if a package is available on one of your organization's channels, search for it by entering the package name into the **Search artifacts** field of the channel details page. 

.. note::

    If you see that the package contains zero files, it means that all the files for that package were removed from the channel, and the package is not available. Select the package to view the reason the files were removed.

    .. thumbnail:: /img/ab_package_search.png
        :align: center

Viewing package details
=======================

Clicking on any package in a channel will display the package details. 

From here, you can view the following information:

* All the files contained within the package
* The package's dependents (other packages that require this package to operate properly)
* The package's dependencies (other packages that this package needs to operate properly)
* CVEs that are associated with files in the package **(for Business tier organizations)**

   .. caution:: 
       
       Conda automatically installs a package's dependencies along with the package itself when that package is requested from the channel. If a dependency is not available due to an applied policy filter, you will not be able to build a working environment with the packages from the current channel.

General information about the package, such as its license type, version number, web homepage, and documentation (if available) is also available from this page.

.. thumbnail:: /img/ab_package_details.png
   :align: center

.. _package-signatures:

Package signatures
==================

Packages in Anaconda's repository come with a security signature: a special key value that proves that the package hasn't been tampered with since going through Anaconda's curation process. Files within a package that have a signature display a green check |badge-check| icon beside their names. The actual signature value can be viewed at the bottom of the metadata file. 

Viewing package metadata
========================

From the package details view, click on a file's name to display its metadata. The metadata is a ``.json`` formatted file that contains all of the information about the package file. 

.. thumbnail:: /img/ab_package_metadata.png
   :align: center

.. tip::
    
    Click the expand |arrows-left-right-to-line| icon to view the metadata in full screen. 

Viewing package SBOMs
=====================

Anaconda's `Software Bill Of Materials (SBOMs) <https://www.ntia.gov/page/software-bill-materials>`_ are built in accordance with `Software Package Data Exchange (SPDX) <https://spdx.dev/>`_ specifications, version 2.2.1, which specifies the checksum hash values of software down to the individual file level.

From the package details view, click on a file's name, then select the **File SBOM** tab. 

.. thumbnail:: /img/ab_view_file_sbom.png
   :align: center

.. note:: 
   
   If no SBOM tab appears, there is no SBOM for that package file. 

Installing a package in your environment
========================================

The package details page also provides you with a command to run if you want to install the package from this channel. Keep in mind that all the package's dependencies will also be installed. 

.. thumbnail:: /img/ab_package_install.png
   :align: center

.. |badge-check| raw:: html

   <svg class="inline" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 512 512"><path d="M256 0c36.8 0 68.8 20.7 84.9 51.1C373.8 41 411 49 437 75s34 63.3 23.9 96.1C491.3 187.2 512 219.2 512 256s-20.7 68.8-51.1 84.9C471 373.8 463 411 437 437s-63.3 34-96.1 23.9C324.8 491.3 292.8 512 256 512s-68.8-20.7-84.9-51.1C138.2 471 101 463 75 437s-34-63.3-23.9-96.1C20.7 324.8 0 292.8 0 256s20.7-68.8 51.1-84.9C41 138.2 49 101 75 75s63.3-34 96.1-23.9C187.2 20.7 219.2 0 256 0zM369 209c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-111 111-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L369 209z" style="color: #00d812;"/></svg>

.. |arrows-left-right-to-line| raw:: html

   <i class="fa-solid fa-arrows-left-right-to-line"></i>
