V2 Update leaves old versions behind #5979
Labels
enhancement
feature-request
A feature should be added or improved.
installation
p2
This is a standard priority issue
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
When I update the aws-cli v2 on linux, using the instructions here, it doesn't remove old versions of the awscli. So after several updates I end up with gigabytes of space used by old versions of aws-cli.
Platform/OS/Hardware/Device
Linux
To Reproduce (observed behavior)
Follow instructions at https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html#cliv2-linux-upgrade to upgrade aws-cli to a new version. Then inspect the folder where the aws-cli is installed, and see old versions still there.
Expected behavior
Upgrading aws-cli shouldn't leave behind old versions.
Or better yet, provide ways to install aws-cli v2 using actual package managers like apt, dnf, maybe PyPi (see #4947) that handles cleaning up old files on upgrade.
The text was updated successfully, but these errors were encountered: