Installation from source

edit

Installation from source

edit

Installing or Curator from source is also possible. In order to do so requires that all dependent libraries are installed first.

If you have pip installed, then you can install from a gzipped file. If not, you have to uncompress the gzipped file and run python setup.py install.

That might look like this:

wget https://pypi.python.org/packages/source/p/package/package-#.#.#.tar.gz
tar zxf package-#.#.#.tar.gz
cd package-#.#.#
python setup.py install

The dependencies are as follows

setuptools

edit

Download ez_setup.py and run it using the target Python version. The script will download the appropriate version and install it for you:

wget https://bootstrap.pypa.io/ez_setup.py -O - | python

Note that you will need to invoke the command with superuser privileges to install to the system Python:

wget https://bootstrap.pypa.io/ez_setup.py -O - | sudo python

Alternatively, setuptools may be installed to a user-local path:

wget https://bootstrap.pypa.io/ez_setup.py -O - | python - --user

 

Urllib3

edit

Download and install the urllib3 dependency (1.8.3 or greater):

  1. wget https://pypi.python.org/packages/source/u/urllib3/urllib3-1.12.tar.gz
  2. pip install urllib3-1.12.tar.gz

or uncompress and run python setup.py install

 

click

edit

Download and install the click dependency (6.0 or greater):

  1. wget https://pypi.python.org/packages/source/c/click/click-6.7.tar.gz -O click-6.7.tar.gz
  2. pip install click-6.7.tar.gz

or uncompress and run python setup.py install

 

certifi

edit

Download and install the certifi dependency. Always use the most recent version:

  1. wget https://github.com/certifi/python-certifi/archive/2017.1.23.tar.gz -O certifi.tar.gz
  2. pip install certifi.tar.gz

 

PyYAML

edit

Download and install the PyYAML dependency (3.10 or greater):

  1. wget http://pyyaml.org/download/pyyaml/PyYAML-3.12.tar.gz -O PyYAML-3.12.tar.gz
  2. pip install PyYAML-3.12.tar.gz

or uncompress and run python setup.py install

 

voluptuous

edit

Download and install the voluptuous dependency (0.9.3 or greater):

  1. wget https://github.com/alecthomas/voluptuous/archive/0.9.3.tar.gz
  2. pip install 0.9.3.tar.gz

or uncompress and run python setup.py install

 

elasticsearch (python module)

edit

Download and install the elasticsearch-py dependency:

  1. wget https://github.com/elastic/elasticsearch-py/archive/2.4.1.tar.gz -O elasticsearch-py.tar.gz
  2. pip install elasticsearch-py.tar.gz

or uncompress and run python setup.py install

 

elasticsearch-curator (python module)

edit

Download and install Curator:

  1. wget https://github.com/elastic/curator/archive/v4.3.1.tar.gz -O elasticsearch-curator.tar.gz
  2. pip install elasticsearch-curator.tar.gz

or uncompress and run python setup.py install. At this point you could also run run_curator.py from the source directory as well.