Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

V2 Update leaves old versions behind #5979

Open
2 tasks done
tmccombs opened this issue Feb 25, 2021 · 1 comment
Open
2 tasks done

V2 Update leaves old versions behind #5979

tmccombs opened this issue Feb 25, 2021 · 1 comment
Labels
enhancement feature-request A feature should be added or improved. installation p2 This is a standard priority issue

Comments

@tmccombs
Copy link

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.

@tmccombs tmccombs added the needs-triage This issue or PR still needs to be triaged. label Feb 25, 2021
@kdaily kdaily added feature-request A feature should be added or improved. installation and removed needs-triage This issue or PR still needs to be triaged. labels Feb 26, 2021
@kdaily kdaily self-assigned this Feb 26, 2021
@kdaily
Copy link
Member

kdaily commented Feb 26, 2021

Hi @tmccombs,

Thanks for the report. This was intentional, as the idea was that you may want to use a previous version of the AWS CLI v2 without having to reinstall. The documentation should be more clear about the existing behavior, how you would easily switch versions, and how to remove one completely.

Please stay tuned on issue #4947, and see the recent update posted today:

#4947 (comment)

@kdaily kdaily removed their assignment Mar 22, 2021
@tim-finnigan tim-finnigan added the p3 This is a minor priority issue label Nov 3, 2022
@tim-finnigan tim-finnigan added p2 This is a standard priority issue and removed p3 This is a minor priority issue labels Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature-request A feature should be added or improved. installation p2 This is a standard priority issue
Projects
None yet
Development

No branches or pull requests

3 participants