Skip to content

Instantly share code, notes, and snippets.

@breiter
Last active Oct 28, 2020
Embed
What would you like to do?
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