conda-self#

Manage conda and its plugins in the base environment.

conda-self provides commands to install, update, and remove conda plugins in a protected base environment. It integrates with conda doctor to set up base protection – cloning your current base to a default environment, removing conda packages not retained by base protection, and marking it as frozen so regular conda commands refuse to modify it unless --override-frozen is passed.

Quick example#

Protect base, install a plugin, update, reset

# Protect your base environment
$ conda doctor -n base base-protection --fix

# Install a plugin safely
$ conda self install conda-index

# Update all installed packages
$ conda self update --all

# Remove a plugin
$ conda self remove conda-index

# Reset base if things go wrong
$ conda self reset

What it does#

conda self keeps your base environment minimal and stable:

  1. Base protectionconda doctor -n base base-protection --fix clones base to default, removes conda packages not retained by base protection, and marks it as frozen

  2. Plugin managementconda self install, update, and remove use --override-frozen to manage plugins through subprocess calls that respect all of conda’s safety checks

  3. Resetconda self reset restores base from an installer or base-protection snapshot, or removes conda packages not retained by current