=======================================
Installing the ``anaconda`` metapackage
=======================================

The ``anaconda`` metapackage is a version-locked collection of packages that were included in an Anaconda Distribution installer. Version-locked packages (also called pinned packages) are tied to a specific version of their software. Conda does not update pinned packages when resolving dependencies if other packages in the environment are added or modified. Because each package in the metapackage is pinned, *any attempt to update the environment will almost certainly result in build conflicts*.

However, it is still possible to install the ``anaconda`` metapackage and update the environment that contains it. For more information, see :ref:`Updating a metapackage environment <updating-metapackage>`.

.. note::
    
    The ``anaconda`` metapackage was removed from Anaconda Distribution installers in February of 2023 and no longer appears in your ``base`` environment by default.

Installing the metapackage
==========================

If you plan to install the ``anaconda`` metapackage, Anaconda recommends that you create an environment specifically for that metapackage first: 

#. Open Anaconda Prompt (Terminal on macOS/Linux).
#. Create a new environment by running the following command:

    .. code-block:: none

        # Replace <ENV> with the name of your environment
        conda create --name <ENV>

#. (Optional) Search for metapackage versions available for install by running the following command:

    .. code-block:: none

        conda search anaconda

#. Install the ``anaconda`` metapackage or specify a metapackage version by running one of the following commands:

    .. tab-set::

        .. tab-item:: Latest version

            .. code-block:: none

                conda install anaconda

        .. tab-item:: Specific version

            .. code-block:: none

                # Replace <VERSION> with the specific version you want to install
                conda install anaconda=<VERSION>

.. _updating-metapackage:

Updating a metapackage environment
==================================

If you have an environment containing the ``anaconda`` metapackage and need to update packages in that environment, you must first unpin the package versions in your environment. This is accomplished by installing the ``anaconda=custom`` version of the metapackage:

#. Open Anaconda Prompt (Terminal on macOS/Linux).
#. Open the environment containing the metapackage you want to update:

    .. code-block:: none

        # Replace <ENV> with the name of your metapackage environment
        conda activate <ENV>

#. Install the custom version of the ``anaconda`` package using the following command:

    .. code-block:: none

        conda install anaconda=custom

#. Install or update packages as desired.

For more information on managing packages, see `Managing packages <https://docs.conda.io/projects/conda/en/stable/user-guide/tasks/manage-pkgs.html>`_ in the conda documentation.
