Is it possible to install aws-cli package without root permission?

前端 未结 3 1672
忘掉有多难
忘掉有多难 2021-02-13 19:51

As title suggested, I haven\'t been able to find a good way to install aws-cli (https://github.com/aws/aws-cli/) without having the root access (or equivalent of

3条回答
  •  清酒与你
    2021-02-13 19:58

    There's a bundled installer for that purpose.

    Install aws command to $HOME/bin

    $ wget https://s3.amazonaws.com/aws-cli/awscli-bundle.zip
    $ unzip awscli-bundle.zip
    $ ./awscli-bundle/install -b ~/bin/aws
    

    Set $PATH environment variable

    $ echo $PATH | grep ~/bin     // See if $PATH contains ~/bin (output will be empty if it doesn't)
    $ export PATH=~/bin:$PATH     // Add ~/bin to $PATH if necessary
    

    Test the AWS CLI Installation

    $ aws help
    

    See the following link for details: http://docs.aws.amazon.com/cli/latest/userguide/awscli-install-bundle.html#install-bundle-user

提交回复
热议问题