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.

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.

1 Like