The AWS Command Line Interface (CLI) allows you to manage your AWS services directly from the terminal on Ubuntu. It is available in Ubuntu's default package repository, making installation straightforward. This method does not require the installation of pip since the AWS CLI package can be managed directly through apt.

Using apt to install the AWS CLI ensures compatibility with your Ubuntu system. This method takes advantage of Ubuntu's robust package management, providing a reliable and easy-to-maintain installation. It supports seamless updates and dependency handling, keeping your installation consistent with other software on your system.

Follow the steps below to install AWS CLI efficiently on your system. The steps are simple and require only a basic understanding of Ubuntu's terminal commands.

Steps to install AWS CLI tools on Ubuntu:

  1. Open your terminal.
  2. Update apt's package list.
    $ sudo apt update
    [sudo] password for user: 
    Get:1 http://security.ubuntu.com/ubuntu impish-security InRelease [103 kB]
    Hit:2 http://archive.ubuntu.com/ubuntu impish InRelease 
    Get:3 http://archive.ubuntu.com/ubuntu impish-updates InRelease [109 kB]
    Hit:4 http://archive.ubuntu.com/ubuntu impish-backports InRelease  
    Get:5 http://security.ubuntu.com/ubuntu impish-security/main amd64 DEP-11 Metadata [4,680 B]
    Get:6 http://archive.ubuntu.com/ubuntu impish-updates/main amd64 DEP-11 Metadata [14.3 kB]
    Get:7 http://archive.ubuntu.com/ubuntu impish-updates/universe amd64 DEP-11 Metadata [2,004 B]
    Fetched 233 kB in 1s (178 kB/s)             
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    All packages are up to date.
  3. Install the AWS CLI package using apt..
    $ sudo apt install --assume-yes awscli
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following additional packages will be installed:
      docutils-common groff gsfonts imagemagick imagemagick-6-common
      imagemagick-6.q16 libde265-0 libheif1 libilmbase25 libjxr-tools libjxr0
      liblqr-1-0 libmagickcore-6.q16-6 libmagickcore-6.q16-6-extra
      libmagickwand-6.q16-6 libnetpbm10 libopenexr25 netpbm psutils
      python3-botocore python3-docutils python3-jmespath python3-pyasn1
      python3-pygments python3-roman python3-rsa python3-s3transfer
    ### snipped ###
  4. Verify the installation by checking the version of AWS CLI.
    aws --version
    aws-cli/2.2.11 Python/3.8.10 Linux/5.11.0-27-generic exe/x86_64.ubuntu.20 prompt/off
  5. Configure AWS CLI with your credentials.

This guide is tested on Ubuntu:

Version Code Name
22.04 LTS Jammy Jellyfish
23.10 Mantic Minotaur
24.04 LTS Noble Numbat
Discuss the article:

Comment anonymously. Login not required.