'amazon-linux-extras enable vs install
What is the difference between amazon-linux-extras enable and amazon-linux-extras install? I am asking because a recent change in our build.sh broke our AWS build - amazon-linux-extras enable ansible2 became amazon-linux-extras install ansible2.
After that the build started failing with:
Installation failed. Check that you have permissions to install.
I added a version check - ansible --version || exit 1 and it passes for amazon-linux-extras enable ansible2 which means that it too installs it (but somehow manages not to fail).
So what is the difference between the two?
Solution 1:[1]
To install a software package from the Extras Library, first confirm that the amazon-linux-extras repository is installed on your instance. Then, list the available software packages, enable the one you're looking for, and then install the package using yum.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | CoreGyan |
