How to Install Amazon AWS CLI on RHEL / CentOS 8

Published on January 21, 2020 28 sec read

Today I’m going to install AWS CLI on RHEL / CentOS 8 server. Let’s install:

Table of Contents

  1. Install PIP
  2. Install AWS CLI
  3. AWS CLI Configuration
  4. Uninstall AWS CLI

Step 1 : Install PIP

First, we have to install PIP on our machine. We need PIP to install AWS CLI. Run this command to install PIP:

sudo dnf install python3-pip

Step 1 : Install AWS CLI

Using PIP, let’s install AWS CLI:

pip3 install awscli --upgrade --user

Step 3 : AWS CLI Configuration

We can verify if AWS CLI is installed or not by checking AWS CLI version using this command:

# aws cli version
aws --version

# pip version
pip3 --version

Now run this command to set Amazon Aws credentials:

aws configure

Step 4 : Uninstall AWS CLI

To uninstall AWS CLI, we need to run this command:

pip3 uninstall awscli
The article is over. Thanks for reading. 🙂

Monthly Newsletter

One email a month, packed with the latest tutorials, delivered straight to your inbox.
We'll never send any spam or promotional emails.

Hey, I'm Md Obydullah. I build open-source projects and write article on Laravel, Linux server, modern JavaScript and more on web development.