How to install AWS CLI on Ubuntu Linux 18.04 desktop machine?

How to install AWS CLI on Ubuntu Linux 18.04 desktop machine?

    AWS CLI is a command-line interface that allows you to operate and manage AWS resources. Let's install AWS CLI that allows you to manage AWS services and resources from Linux/Unix terminal. Once AWS CLI is installed, we need to verify it by checking its version. Please read the AWS CLI documentation to know more.

# Install Python 3.8.
$ sudo apt install python3.8
 
# Install Pip 3.
$ sudo apt install python3-pip
 
# Set Python 3.8 as default interpreter and Python 3.6/2.7 as fallback interpreters.
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2.7 1
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.6 2
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.8 3

# List Python versions available.
$ sudo update-alternatives --list python
 
# Check Python version.
$ python --version
 
# Check Pip version.
$ pip --version

# Install AWS CLI.
$ sudo pip install awscli

# Check AWS CLI version.
$ aws --version

    • Related Articles

    • How to install Docker on Ubuntu Linux 18.04 desktop machine?

      Docker is available in two editions: Community Edition (CE) and Enterprise Edition (EE). Here, we'll proceed with Docker CE, the Community Edition. To do a clean installation, you must first remove existing Docker installation, if anything found. And ...
    • How to install VirtualBox on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install VirtualBox to build and run virtual machines. Now, let's see how to do VirtualBox installation on Linux host machine. # Install required system packages. $ ...
    • How to install Vagrant on Ubuntu Linux 18.04 desktop machine?

      If you have a host machine that runs Ubuntu Linux operating system, then you need to install Vagrant to automate and manage virtual machines. Now, let's see how to do Vagrant installation on Linux host machine. # Download Vagrant. $ wget ...
    • How to install Git on Ubuntu Linux 18.04 desktop machine?

      Here, we install Git using system package manager. This is most recommended way of installing Git on Ubuntu Linux operating system. No matter how we install Git, its just a command line utility. Once the installation is done, you need to verify Git ...
    • How to install Terraform on Ubuntu Linux 18.04 desktop machine?

      Let's install Terraform by downloading and extracting the executable binary for Linux. This is most recommended way of installing Terraform on any Linux-based operating system. No matter how we install Terraform, its just a executable binary. Once ...