Since Linux users are more comfortable working with command line interfaces, Amazon Web Services introduced the AWS CLI to manage all these services from a single platform. With this tool, you can manage multiple services at once, easily and conveniently. In this guide, we’ll show you how to install the AWS CLI on Ubuntu Linux.

Install the AWS CLI on Ubuntu

In order to install the AWS CLI on an Ubuntu server or Desktop, you need to proceed with the following steps:

Step # 1: Prepare the Target Machine for the AWS CLI Installation

First, you need to prepare your target machine for the AWS CLI installation by updating it as shown below:

$ sudo apt-get update

Update packages

This command will not only update the required packages but will also remove all the unnecessary ones.

Step # 2: Install the AWS CLI on the Target Machine

Then, you can install the AWS CLI on your target machine by running the following command:

$ sudo apt-get install awscli

Install AWS CLI

Step # 3: Confirm the installation of the AWS CLI on the Target Machine

After that, you can confirm the installation of the AWS CLI on your target system by executing the command shown below:

$ aws --version

Check AWScli version

The appearance of the AWS CLI version on the terminal confirms its installation on the target machine as shown in the following image:

AWS-CLI installed successfully

Remove the AWS CLI

To remove the AWS CLI along with all of its associated packages from your target system, you can simply run the command shown below:

$ sudo apt-get purge --autoremove awscli

Conclusion

The installation of the AWS CLI Ubuntu Linux and Linux Mint is extremely simple as we have seen in this article. Once you have this tool installed on your target system, you can conveniently manage as many Amazon Web Services as you want with the help of this unified tool.

 

How to Install AWS-CLI on Ubuntu

Karim Buzdar

About the Author: Karim Buzdar holds a degree in telecommunication engineering and holds several sysadmin certifications. As an IT engineer and technical author, he writes for various web sites. You can reach Karim on LinkedIn