Skip to content

Instantly share code, notes, and snippets.

Last active Oct 28, 2020
What would you like to do?
install/update and uninstall aws cli from amazon official package
curl "" -o "/tmp/AWSCLIV2.pkg"
sudo installer -pkg /tmp/AWSCLIV2.pkg -target /
/usr/local/bin/aws --version
rm /tmp/AWSCLIV2.pkg
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