0
votes

I have installed AWS CLI latest version using "sudo pip install --upgrade awscli " . this has successfully updated my aws cli version but for only root users, but for all remaining users , it is showing version as previous one only, If I run the command without sudo then its saying permission denied.

If my server has multiple linux users and want to update my aws cli version from 1.16.3 to 1.18.223 for all users, how can I do it ?

Please help me .

Thank in advance

1

1 Answers

1
votes

You can adjust the path where you want to install, the binary.

Install the AWS CLI version 1 using the bundled installer with sudo

curl "https://s3.amazonaws.com/aws-cli/awscli-bundle-1.18.223.zip" -o "awscli-bundle.zip"
unzip awscli-bundle.zip
sudo ./awscli-bundle/install -i /usr/local/aws -b /usr/local/bin/aws

Just curious when you are upgrading the AWS Cli why not the latest which is backward compatible and probaly more options

Try not to install pip packages with sudo. Better use a Creating virtual environments