12

I installed awscli on my EC2 instance using apt-get install.

The version is still aws-cli/1.2.9 and no longer updates if I use apt-get upgrade awscli. The latest release from what I Googled is 1.10.30.

How can you update aws cli on Ubuntu 14.04?

Thank you.

PS. Other than using pip since I don't have that.

1
  • 1
    What's preventing you from installing pip? I guess you could use easy_install or manually download the source distribution.
    – jordanm
    Commented May 23, 2016 at 12:52

2 Answers 2

9

Here's the explanation on how you can perform the upgrade.

http://docs.aws.amazon.com/cli/latest/userguide/installing.html

Here's what did the job for me:

To install the AWS CLI using the bundled installer
Download the AWS CLI Bundled Installer using wget or curl.
Unzip the package.

Run the install executable.

On Linux and OS X, here are the three commands that correspond to each step:

curl "https://s3.amazonaws.com/aws-cli/awscli-bundle.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws
1
  • Links to external resources are encouraged, but the important/relevant information from the link should be included in the answer. In general, it’s best for answers to be as self-contained as possible. Always quote the most relevant part of the external resource as its URL may change or go permanently offline. Commented Jun 22, 2016 at 13:20
0

Updating AWS CLI on Ubuntu 14.04 requires a manual installation process since the version available via apt-get is outdated. Here's how you can update AWS CLI to the latest version:

Uninstall the existing AWS CLI: You can do this by running:

:// sudo apt-get remove awscli

Install pip if not already installed: Pip is a package manager for Python, and it's commonly used to install Python packages, including AWS CLI. You can install pip using:

:// sudo apt-get install python-pip

Install AWS CLI using pip: Once pip is installed, you can install AWS CLI with the following command:

:// sudo pip install awscli --upgrade --user

Install AWS CLI using pip: Once pip is installed, you can install AWS CLI with the following command:

:// sudo pip install awscli --upgrade --user

The --upgrade flag ensures that if you have an older version installed, it will be upgraded to the latest version. The --user flag ensures that AWS CLI is installed only for the current user, which can be beneficial for managing dependencies and avoiding conflicts with system packages.

Verify the installation: After installation, you can verify that AWS CLI has been updated to the latest version by running:

:// aws --version

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .