Afloz
Afloz

Reputation: 3665

Bulk package updates using Conda

Is there a way (using conda update) that I can list outdated packages and select or bulk update (compatible) packages in Anaconda?

It doesn't make much sense updating the packages individually as there are hundreds of them.

Upvotes: 216

Views: 120052

Answers (4)

Naveen Reddy Marthala
Naveen Reddy Marthala

Reputation: 3123

# list packages that can be updated
conda search --outdated

# update all packages prompted(by asking the user yes/no)
conda update --all

# update all packages unprompted
conda update --all -y

Upvotes: 1

thanvaf
thanvaf

Reputation: 329

Before you proceed to conda update --all command, first update conda with conda update conda command if you haven't update it for a long time. It happent to me (Python 2.7.13 on Anaconda 64 bits).

Upvotes: 15

goanpeca
goanpeca

Reputation: 546

the Conda Package Manager is almost ready for beta testing, but it will not be fully integrated until the release of Spyder 2.4 (https://github.com/spyder-ide/spyder/wiki/Roadmap). As soon as we have it ready for testing we will post something on the mailing list (https://groups.google.com/forum/#!forum/spyderlib). Be sure to subscribe

Cheers!

Upvotes: 2

asmeurer
asmeurer

Reputation: 91450

You want conda update --all.

conda search --outdated will show outdated packages, and conda update --all will update them (note that the latter will not update you from Python 2 to Python 3, but the former will show Python as being outdated if you do use Python 2).

Upvotes: 358

Related Questions