conda-self#

Manage your conda base environment safely.

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, resetting base to essentials, and freezing it so only conda self commands can modify it.

Quick example#

Protect base, install a plugin, update, reset

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

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

# Update conda and all plugins
$ conda self update

# 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 base-protection --fix clones base to default, resets it to essentials, and freezes it

  2. Plugin managementconda self install, update, and remove bypass the freeze to manage plugins through subprocess calls that respect all of conda’s safety checks

  3. Resetconda self reset restores base from a snapshot (installer-provided, base-protection, or current state)