This guide is distro-agnostic so it should help with awscli installation on Linux systems such as RHEL, CentOS, Ubuntu, Suse etc. The only requirement is python installation to be available on your system. The installation of awscli the Amazon Web Services command line tool on the Linux system consists of multiple steps. First we need to install pip the python packaging tool. Once we have pip installed and ready to use we use it to install awscli.

Installation of PIP

Let's get started with pip installation. pip has a single dependencies and that is setuptools which must be installed first:
[root@rhel7 ~]# wget --no-check-certificate
[root@rhel7 ~]# tar xzf setuptools-7.0.tar.gz
[root@rhel7 ~]# cd setuptools-7.0
[root@rhel7 ~]# python install
Next we can proceed with pip installation. Here we assume that python is already installed on your Redhat 7 Linux system:
[root@rhel7 ~]# wget
[root@rhel7 ~]# python
Installing collected packages: pip
Successfully installed pip

Installation of awscli

Now that we have pip tool ready for use we can simply use it to install awscli the Amazon Web Services command line tool.
[root@rhel7 ~]# pip install awscli
Successfully installed awscli botocore bcdoc six colorama docutils rsa jmespath python-dateutil pyasn1
Cleaning up...
[root@rhel7 ~]#
As a last step we can check the awscli version:
[root@rhel7 ~]# aws --version
aws-cli/1.6.8 Python/2.7.5 Linux/3.10.0-123.el7.x86_64
To configure your awscli tool enter the following linux commands:
[root@rhel7 ~]# aws configure
Submit your RESUME, create a JOB ALERT or subscribe to RSS feed.
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
Get extra help by visiting our LINUX FORUM or simply use comments below.

You may also be interested in: