Upgrading to Anaconda3 v2022.05

I have anaconda 3.2019.10 and want to upgrade to 3 v2022.05

My question, when I upgrade anaconda, is it going to overwrite all the libraries that I have in my base and other environment or keep them?

Appreciate your feedback.

Ahmed

1 Like

ahmed.shaikh.3

My question, when I upgrade anaconda, is it going to overwrite all the libraries that I have in my base and other environment or keep them?

It basically overwrites.
The exception is that it will be retained if installed using the new Anaconda installer.
At that time, what you want to be careful about is which Anaconda is running? It must be controlled by a shell script or the like.

1 Like

It depends how you’re installing it and how you’ve configured your conda environments.

If you’re running the command conda install -n base -c defaults anaconda==2022.05 then anything in your base directory will be overwritten and everything else will remain.

However if you’re using the Anaconda installer then everything in your install directory will get overwritten / deleted. If you have your other environments set to install in your Anaconda install directory (I think this is default) then they will get deleted. However if you have them set to install somewhere else (through the envs_dirs config in .condarc) then they will not be deleted.

3 Likes

Thank you for the feedback and apologies for the delay. You are right. I agree. Unfortunately the installation is set up using a silent installer and its script is only visible by our IT admins. I will check with them how they set it up.

FYI I worked with a similar set-up in my previous company and I was able to get IT admins to write a custom “.condarc” to the user profile which included modifications like “envs_dirs” and other changes that were useful to run inside a company.