Friday, June 5, 2020

How to install AWC CLI on Linux

Install  AWC CLI on Linux 


[root@anurag ~]#
[root@anurag ~]#
[root@anurag ~]# curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 31.4M  100 31.4M    0     0  71.7M      0 --:--:-- --:--:-- --:--:-- 71.7M
[root@anurag ~]# ls -lrt
total 33960
-rw-------. 1 root root     7325 Jun 18  2019 original-ks.cfg
-rw-------. 1 root root     7539 Jun 18  2019 anaconda-ks.cfg
-rw-r--r--  1 root root  1807342 Apr 14 11:16 get-pip.py
-rw-r--r--  1 root root 32945325 Jun  5 13:55 awscliv2.zip
[root@anurag ~]#
[root@anurag ~]# unzip awscliv2.zip
Archive:  awscliv2.zip
   creating: aws/
   creating: aws/dist/
  inflating: aws/THIRD_PARTY_LICENSES
  inflating: aws/install
  inflating: aws/README.md
   creating: aws/dist/_struct/
...............................
...............................
................................

  inflating: aws/dist/cryptography-2.8-py3.7.egg-info/top_level.txt
  inflating: aws/dist/cryptography-2.8-py3.7.egg-info/METADATA
  inflating: aws/dist/cryptography-2.8-py3.7.egg-info/LICENSE.APACHE
  inflating: aws/dist/cryptography-2.8-py3.7.egg-info/INSTALLER
  inflating: aws/dist/cryptography-2.8-py3.7.egg-info/WHEEL
[root@anurag ~]#
[root@anurag ~]#
[root@anurag ~]#
[root@anurag ~]# ls -lrt
total 33960
-rw-------. 1 root root     7325 Jun 18  2019 original-ks.cfg
-rw-------. 1 root root     7539 Jun 18  2019 anaconda-ks.cfg
-rw-r--r--  1 root root  1807342 Apr 14 11:16 get-pip.py
drwxr-xr-x  3 root root       78 Jun  4 22:49 aws
-rw-r--r--  1 root root 32945325 Jun  5 13:55 awscliv2.zip
[root@anurag ~]#
[root@anurag ~]#
[root@anurag ~]# ./aws/install
You can now run: /usr/local/bin/aws --version
[root@anurag ~]#
[root@anurag ~]#
[root@anurag ~]#
[root@anurag ~]# which aws
/usr/local/bin/aws
[root@anurag ~]#
[root@anurag ~]#


[root@anurag ~]# aws --version
aws-cli/2.0.19 Python/3.7.3 Linux/4.18.0-80.4.2.el8_0.x86_64 botocore/2.0.0dev23
[root@anurag ~]#


https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

2 comments: