Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installer level removal of old .condarc files #635

Open
bridgetjs opened this issue Aug 28, 2024 · 3 comments
Open

Installer level removal of old .condarc files #635

bridgetjs opened this issue Aug 28, 2024 · 3 comments
Labels
question Further information is requested

Comments

@bridgetjs
Copy link

Comment:

Many users are currently switching over from anaconda distribution to open-source alternatives. One issue I've run into is that uninstalling anaconda may leave behind .condarc files which continue to contain the defaults channel.
channels: defaults
Could the installer be adapted to look for these files and remove them ?

@bridgetjs bridgetjs added the question Further information is requested label Aug 28, 2024
@jaimergp
Copy link
Member

We would need a couple of pre_install scripts I think, but yes, doable. We could also do something like a post_install script that is a bit less aggressive:

We will now report the configuration seen by `conda`.
If you find anything that should not be there, please feel free to edit the corresponding files accordingly.
In a clean installation, the only source should be `$PREFIX/condarc`.

>>> conda config --show-sources
...

WDYT?

@bridgetjs
Copy link
Author

That would be great, but is it possible within the windows installer ?

@jaimergp
Copy link
Member

Maybe with some warning dialogs in the GUI. For silent installers, nope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Development

No branches or pull requests

2 participants