AWS CLI

From DikapediaV2
Revision as of 05:41, 20 August 2024 by Ardika Sulistija (talk | contribs) (Created page with "====How to uninstall AWS CLI v1 (on AL2)==== ---- Uninstall aws cli v1: $ sudo yum remove awscli https://docs.aws.amazon.com/cli/v1/userguide/install-linux-al2017.html#install-amazon-linux-yum-uninstall ====How to install AWS CLI v2 (on AL2)==== ---- curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" unzip awscliv2.zip sudo ./aws/install or another way: $ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awsc...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

How to uninstall AWS CLI v1 (on AL2)


Uninstall aws cli v1:

 $ sudo yum remove awscli

https://docs.aws.amazon.com/cli/v1/userguide/install-linux-al2017.html#install-amazon-linux-yum-uninstall


How to install AWS CLI v2 (on AL2)


curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

or another way:

$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
$ unzip awscliv2.zip
$ sudo ./aws/install --bin-dir /usr/local/bin --install-dir /usr/local/aws-cli --update

(I tested both, both works)

exit
(log back in)

$ aws --version
aws-cli/2.4.11 Python/3.8.8 Linux/4.14.256-197.484.amzn2.x86_64 exe/x86_64.amzn.2 prompt/off


https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html