DEV Community

Cover image for AWS CLI Installation - Ubuntu & Windows
Unni P
Unni P

Posted on • Originally published at iamunnip.hashnode.dev

AWS CLI Installation - Ubuntu & Windows

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
Enter fullscreen mode Exit fullscreen mode
$ sudo apt install build-essential procps curl file git
Enter fullscreen mode Exit fullscreen mode

Install Homebrew using the provided convenience script

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

Add Homebrew in our system PATH using the below commands

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

Verify the version and install the recommended gcc package

$ brew --version
Homebrew 4.0.15
Enter fullscreen mode Exit fullscreen mode
$ brew install gcc
Enter fullscreen mode Exit fullscreen mode

Turn off Homebrew anonymous aggregate user behavior analytics

$ brew analytics
Analytics are enabled.
Enter fullscreen mode Exit fullscreen mode
$ brew analytics off
Enter fullscreen mode Exit fullscreen mode
$ brew analytics
Analytics are disabled.
Enter fullscreen mode Exit fullscreen mode

Install AWS CLI and verify its version

$ brew install awscli
Enter fullscreen mode Exit fullscreen mode
$ 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
Enter fullscreen mode Exit fullscreen mode

Windows

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

> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Enter fullscreen mode Exit fullscreen mode
> irm get.scoop.sh | iex
Enter fullscreen mode Exit fullscreen mode

Install AWS CLI and verify its version

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

Reference

https://brew.sh/

https://scoop.sh/

Sentry image

Hands-on debugging session: instrument, monitor, and fix

Join Lazar for a hands-on session where you’ll build it, break it, debug it, and fix it. You’ll set up Sentry, track errors, use Session Replay and Tracing, and leverage some good ol’ AI to find and fix issues fast.

RSVP here →

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay