. How to Install AWS CLI on Ubuntu 24.04 LTS
How to Install AWS CLI on Ubuntu 24.04 LTS
How to Install AWS CLI on Ubuntu 24.04 LTS

How to Install AWS CLI on Ubuntu 24.04 LTS

In this article, we will cover How to Install AWS CLI on Ubuntu 24.04 LTS using Snap Package Manager, Install AWS CLI using tar.gz Source File and Install AWS CLI using pip installer.

The AWS CLI is a valuable tool for anyone who wants to efficiently manage AWS resources, automate tasks, and leverage the power of the AWS API. In this article we will show how to install AWS CLI on Ubuntu 24.04.

Table of Contents

Prerequisites

  • SSH Access with admin privileges
  • Ubuntu 24.04 LTS with minimal installation

AWS CLI can be installed in three ways which are mentioned below:

  1. Snap Package Manager
  2. tar.gz Source File
  3. Pip Installer

How to Install AWS CLI on Ubuntu 24.04 Using Snap Package Manager

Use the Snap package manager to install the AWS CLI in ‘classic’ mode:

sudo snap install aws-cli --classic

Verify the AWS CLI Installation

After the installation is complete, you can verify it by checking the version of AWS CLI installed:

aws --version

How to Uninstall AWS CLI on Ubuntu 24.04 Using Snap Package Manager?

To uninstall the AWS CLI on Ubuntu 24.04 using the Snap package manager, follow this step:

sudo snap remove aws-cli

How to Install AWS CLI on Ubuntu 24.04 From tar.gz Source File

To install the AWS CLI on Ubuntu 24.04 from a tar.gz source file, follow these steps:

Download the AWS CLI tar.gz File using curl

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

Install unzip on Ubuntu 24.04 LTS using below command

sudo apt install unzip

Extract the aws cli bundle setup

unzip awscliv2.zip

Run the Install Script

sudo ./aws/install

Verify the installation

aws --version

How to Uninstall AWS CLI on Ubuntu 24.04 LTS?

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

verify AWS setup

aws --version

How to Install AWS CLI on Ubuntu 24.04 Using Pip Installer?

To install the AWS CLI on Ubuntu 24.04 using the pip installer, follow these steps:

Update Your Package List

sudo apt update

Install Python3 with pip on Ubuntu 24.04 LTS

If pip is not already installed, you can install it using the following command:

sudo apt install python3-pip

Install AWS CLI on Ubuntu 24.04 LTS using pip3

Use pip to install the AWS CLI:

pip3 install awscli --break-system-packages

After the installation is complete, you can verify it by checking the version of AWS CLI installed:

verify the installation

After the installation is complete, you can verify it by checking the version of AWS CLI installed:

pip show awscli

How to Uninstall AWS CLI on Ubuntu 24.04 Using Pip Installer?

To uninstall the AWS CLI on Ubuntu 24.04, follow these steps:

Use the following command to uninstall the AWS CLI

pip3 uninstall awscli --break-system-packages

verify removal of AWS CLI

To ensure that the AWS CLI has been successfully removed, you can check the version:

aws --version

Conclusion:

The AWS CLI is a valuable tool for efficiently managing and interacting with Amazon Web Services (AWS) from your Ubuntu 24.04 system.

Following the steps outlined in this article, you can successfully install the AWS CLI and configure it to access your AWS resources. With the AWS CLI at your disposal, you can automate tasks, script complex workflows, and leverage the full power of AWS services from the comfort of your Ubuntu terminal.

Related Articles:

Reference:

Sharing is Caring:

Harish Reddy Leave a Comment Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

RECENT POSTS

  • OpenTelemetry Sampling | Head vs Tail Sampling with Examples
  • OpenTelemetry Context Propagation | Trace ID, Span ID, Baggage & W3C Headers
  • Forex VPS India: Hardware Requirements for MT4 & MT5 Trading
  • OpenTelemetry Instrumentation | Code-based vs Auto Instrumentation
  • OpenTelemetry Collector Architecture, Receivers, Processors & Exporters

About Foss TechNix

FOSS TechNix (Free ,Open Source Softwares and Technology Nix*) is a community site where you can find How-To Guides, Articles, Tips and Tricks for DevOps Tools, Linux, Databases, Clouds and Automation.

DEVOPS TOOLS & TIPS

  • What does DevOps Engineer do ?
  • Top 11 Open Source Monitoring Tools for Linux

Tutorial for Beginners

  • Docker Tutorial for Beginners
  • Kubernetes Tutorial for Beginners
  • GitLab CI/CD Tutorial
  • Prometheus Tutorial for Beginners
  • Elastic Stack Tutorial for Beginners
  • Kubernetes Kustomize Tutorial for Beginners

© 2026 FossTechNix(A Product of SkyHigh Services) - Designed by InfraKode Services

📎📎📎📎📎📎📎📎📎📎