From d90080ec01efdab22459225f43d963edc93c0a7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Solt=20Budav=C3=A1ri?= Date: Fri, 18 Mar 2016 18:01:56 +0000 Subject: [PATCH] Addition to pip cheatsheat Added shorter alternative to "updating outdated packages". --- cheat/cheatsheets/pip | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cheat/cheatsheets/pip b/cheat/cheatsheets/pip index edc122c..b74c4c1 100644 --- a/cheat/cheatsheets/pip +++ b/cheat/cheatsheets/pip @@ -17,5 +17,8 @@ pip list --outdated # Upgrade all outdated packages, thanks to http://stackoverflow.com/a/3452888 pip freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip install -U +# UPgrade all outdated packages (shorter command) +pip3 install -U $( pip3 list -o | cut -d" " -f1 ) + # Install specific version of a package pip install -I SomePackage1==1.1.0 'SomePackage2>=1.0.4'