P
P
petrovkazanksvu12021-02-26 20:38:02
Amazon Web Services
petrovkazanksvu1, 2021-02-26 20:38:02

How to painlessly get rid of the second path to the AWS binary?

Initially on ubuntu 20 was installed

aws --version
aws-cli/1.18.69 Python/3.8.5 Linux/5.8.0-43-generic botocore/1.16.19

then downloaded version 2 and installed
$ curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
unzip awscliv2.zip
sudo ./aws/install

then there were 2 ways to the AWS binary
[email protected]:/home/geo# whereis aws
aws: /usr/bin/aws /usr/local/bin/aws

those. the first is version 1, the second binary is version 2. And in the priority now there is 1 version on a short command, but it is necessary that there be a SECOND ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
0
0nkery, 2021-02-27
@petrovkazanksvu1

https://unix.stackexchange.com/questions/127888/se...
A couple of options:
1. Change $PATH to /usr/local/bincome before /usr/bin.
export PATH=/usr/local/bin:$PATH
2. Make an alias or bash function that will expand awsto /usr/local/bin/aws.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question