AWS Command Line Interface (CLI) tools are provided by AWS as a pip package and, for Windows, an installer bundle. However, there is an RPM package of the tool made available for CentOS and Red Hat in the default yum repository. Installing AWS CLI tools via yum is the easiest way as it will install the tools in the proper path while also installing all the required dependencies.

You can install AWS CLI tools using yum or dnf at the terminal.

Steps to install AWS CLI tools on CentOS, Red Hat or Fedora:

  1. Launch terminal application.
  2. Enable EPEL repository for yum and dnf.
    $ sudo dnf install --assumeyes epel-release
    [sudo] password for user:
    Last metadata expiration check: 0:12:47 ago on Fri 05 Nov 2021 06:25:23 AM +08.
    Dependencies resolved.
    ================================================================================
     Package                   Architecture   Version          Repository      Size
    ================================================================================
    Installing:
     epel-release              noarch         8-11.el8         extras          24 k
    Installing weak dependencies:
     epel-next-release         noarch         8-11.el8         extras          11 k
    
    Transaction Summary
    ================================================================================
    Install  2 Packages
    
    Total download size: 35 k
    Installed size: 38 k
    ##### snipped
  3. Install awscli package using dnf.
    $ sudo dnf install --assumeyes awscli
    Extra Packages for Enterprise Linux 8 - x86_64  7.4 MB/s |  11 MB     00:01    
    Extra Packages for Enterprise Linux Modular 8 -  43 kB/s | 955 kB     00:22    
    Extra Packages for Enterprise Linux 8 - Next -  301 kB/s | 1.3 MB     00:04    
    Last metadata expiration check: 0:00:03 ago on Fri 05 Nov 2021 06:39:02 AM +08.
    Dependencies resolved.
    ================================================================================
     Package            Arch   Version                              Repo       Size
    ================================================================================
    Installing:
     awscli             noarch 1.18.156-2.el8                       epel      2.1 M
    Installing dependencies:
     python3-botocore   noarch 1.18.15-1.el8                        epel      4.5 M
     python3-colorama   noarch 0.4.3-1.el8                          epel       35 k
     python3-docutils   noarch 0.14-12.module_el8.5.0+761+faacb0fb  appstream 1.6 M
     python3-jmespath   noarch 0.9.0-11.el8                         appstream  45 k
     python3-pyasn1     noarch 0.3.7-6.el8                          appstream 126 k
     python3-rsa        noarch 4.7.2-1.el8                          epel       61 k
     python3-s3transfer noarch 0.3.4-1.el8                          epel      108 k
    
    Transaction Summary
    ================================================================================
    Install  8 Packages
    
    Total download size: 8.5 M
    Installed size: 62 M
    ##### snipped
  4. Configure your AWS CLI tool to start managing your AWS systems.
Discuss the article:

Comment anonymously. Login not required.