The documentation for conda env update
does not really answer this question: After executing the command, is the environment now the same as described in the -f FILE
yaml file or does it just add non-existent packages and upgrade outdated packages, leaving manually installed packages?
The --prune
option of conda env update
is what you are looking for:
conda env update -f file.yml --prune
The option is mentioned in the documentation
Edit: As @MarkLoyman mentions, it has issues since conda 4.4 https://github.com/conda/conda/issues/7279
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With