Last active
October 28, 2020 07:04
-
-
Save breiter/1397696d11f8ecbe9e24451e1fe446a5 to your computer and use it in GitHub Desktop.
install/update and uninstall aws cli from amazon official package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "/tmp/AWSCLIV2.pkg" | |
sudo installer -pkg /tmp/AWSCLIV2.pkg -target / | |
/usr/local/bin/aws --version | |
rm /tmp/AWSCLIV2.pkg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "uninstalling aws-cli..." | |
sudo rm /usr/local/bin/aws | |
sudo rm /usr/local/bin/aws_completer | |
sudo rm -fr /usr/local/aws-cli | |
echo "done." |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment