Skip to content

Conversation

soapy1
Copy link
Contributor

@soapy1 soapy1 commented Jun 17, 2025

This PR implements the ability for conda-self to uninstall packages from the base environment. conda self will block uninstalling packages that are required. For example,

conda-self will block uninstalling conda

$ pixi run conda self remove conda                                                                                                                                                  

Package 'conda' can not be removed. Aborting!

conda-self will uninstall other requested packages

$ pixi run conda remove conda-declarative                                                                                                                                          
Channels:
 - defaults
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: done

## Package Plan ##

  environment location: /home/sophia/projects/conda-self/.pixi/envs/default

  removed specs:
    - conda-declarative


The following packages will be REMOVED:

  conda-declarative-0.0.0dev0-py_0
  tomli-2.0.1-py313h06a4308_1
  tomli-w-1.2.0-pyhd3eb1b0_0


Proceed ([y]/n)? y


Downloading and Extracting Packages:

Preparing transaction: done
Verifying transaction: done
Executing transaction: done

@jaimergp
Copy link
Member

Same comment here as in #6 (comment)

@soapy1 soapy1 force-pushed the remove-from-self branch from 744da1a to 75d7f90 Compare June 23, 2025 16:21
@soapy1 soapy1 marked this pull request as ready for review June 23, 2025 17:09
@soapy1 soapy1 force-pushed the remove-from-self branch from 75d7f90 to 2344b48 Compare June 23, 2025 18:23
@jaimergp jaimergp merged commit 78e4b84 into conda-incubator:main Jun 23, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants