The Anchore CLI is published as a Python Package that can be installed from source from the Python PyPI package repository on any platform supporting PyPi.
sudo yum install -y epel-release sudo yum install -y python-pip pip install --user --upgrade anchorecli
sudo apt-get update sudo apt-get install python-pip pip install --user --upgrade anchorecli
sudo easy_install pip pip install --user --upgrade anchorecli
git clone https://github.com/anchore/anchore-cli cd anchore-cli pip install --user --upgrade .
Once installed the anchore-cli utility has been installed you may need to adjust your PATH to ensure that the anchore-cli executable is in the user’s path.
The install location is system dependent, governed by PIP and may vary based the distribution on which you are running. The most common default locations are:
You can verify the install location by running the following command:
$ python -m site --user-base /home/myusername/.local
Executable files installed by pip –user will be placed in the bin sub directory.
Once the Anchore CLI has been installed it should be configured to access the Anchore Engine.