AWS CLI Installation — Ubuntu & Windows

Unni P
1 min readMay 1, 2023

--

In this article we will look how we can install AWS CLI on Ubuntu using Homebrew and in Windows using Scoop

Ubuntu

Install some prerequisite packages

$ sudo apt update
$ sudo apt install build-essential procps curl file git

Install Homebrew using the provided convenience script

$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Add Homebrew in our system PATH using the below commands

$ (echo; echo 'eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"') >> /home/ubuntu/.profile
$ eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"

Verify the version and install the recommended gcc package

$ brew --version
Homebrew 4.0.15
$ brew install gcc

Turn off Homebrew anonymous aggregate user behavior analytics

$ brew analytics
Analytics are enabled.
$ brew analytics off
$ brew analytics
Analytics are disabled.

Install AWS CLI and verify its version

$ brew install awscli
$ aws --version
aws-cli/2.11.16 Python/3.11.3 Linux/5.10.16.3-microsoft-standard-WSL2 source/x86_64.ubuntu.22 prompt/off

Windows

Open a Powershell terminal (version 5.1 or above) and execute the below commands to install Scoop

> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
> irm get.scoop.sh | iex

Install AWS CLI and verify its version

> scoop install aws
> aws --version
aws-cli/2.11.16 Python/3.11.3 Windows/10 exe/AMD64 prompt/off

--

--

Unni P
Unni P

Written by Unni P

SysAdmin turned into DevOps Engineer | Collaboration and Shared Responsibility

No responses yet