How to update AWS CLI tools on AWS Linux?

I am running "Amazon Linux AMI release 2010.11.2". I noticed that the AWS CLI tools are outdated.

I have tried to use yum update and yum upgrade but it's telling me that the packages are already at their latest version.

How would I update the CLI tools, and how would I update the distribution itself? E.g. to a newer version of AWS Linux.

Thanks!


Solution 1:

sudo pip install --upgrade awscli

Solution 2:

According to Amazon Linux AMI 2011.02 Beta Release Notes

The correct procedure for updating AWS Linux AMI is:

sudo /usr/sbin/distro-upgrade.sh

This also installs the latest versions of CLI Tools.