• Install AWS CLI Ubuntu. 

    Execute the command at terminal

$ sudo apt-get install awscli

Follow the above step from the command line to install the AWS CLI using the Ubuntu Debian Package. Easier to update compared to downloading the binaries once in while, every time, it is updated.

Close the terminal and open it, execute the following command

$ aws --version

aws-cli/1.14.44 Python/3.6.6 Linux/4.15.0-38-generic botocore/1.8.48

  • Install the AWS CLI Using the Bundled Installer

    Follow these steps from the command line to install the AWS CLI using the bundled installer.

    To install the AWS CLI using the bundled installer

    1. Download the AWS CLI Bundled Installer.
      $ curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
    2. Unzip the package.
      $ unzip awscli-bundle.zip


      If you don’t have unzip, use your Linux distribution’s built in package manager to install it.

    3. Run the install executable.
      $ sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws


      By default, the install script runs under the system default version of Python. If you have installed an alternative version of Python and want to use that to install the AWS CLI, run the install script with that version by absolute path to the Python executable. For example

      $ sudo /usr/local/bin/python2.7 awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
    4. The installer installs the AWS CLI at /usr/local/aws and creates the symlink aws at the /usr/local/bin directory. Using the -b option to create a symlink eliminates the need to specify the install directory in the user’s $PATH variable. This should enable all users to call the AWS CLI by typing aws from any directory.


      The bundled installer does not put anything outside of the installation directory except the optional symlink, so uninstalling is as simple as deleting those two items.

      $ sudo rm -rf /usr/local/aws $ sudo rm /usr/local/bin/aws