Skip to content

Instantly share code, notes, and snippets.

@breiter
Last active October 28, 2020 07:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breiter/1397696d11f8ecbe9e24451e1fe446a5 to your computer and use it in GitHub Desktop.
Save breiter/1397696d11f8ecbe9e24451e1fe446a5 to your computer and use it in GitHub Desktop.
install/update and uninstall aws cli from amazon official package
#!/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
#!/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