The pip package manager can be used to update one or more packages system-wide: in this short note we will see how to proceed.
To generate a list of all outdated packages:
pip list --outdated
![](https://i0.wp.com/www.raucci.net/wp-content/uploads/2022/03/Schermata-2022-03-25-alle-20.04.04.jpg?resize=559%2C354)
To upgrade all packages using pip with grep:
pip3 list --outdated --format=freeze | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U