Ubuntu

Required software

Ubuntu 16.04 includes packages for PostgreSQL 9.5. On earlier versions of Ubuntu you can use the postgresql.org repo as described on [their download page](http://www.postgresql.org/download/linux/ubuntu/).

PostgreSQL:

apt-get install postgresql-9.5 postgresql-client-9.5 postgresql-contrib-9.5

HDF5, and netCDF4:

apt-get install libhdf5-serial-dev libnetcdf-dev

GDAL:

apt-get install libgdal1-dev

Optional packages (useful utilities, docs):

apt-get install postgresql-doc-9.5 libhdf5-doc netcdf-doc libgdal1-doc
apt-get install hdf5-tools netcdf-bin gdal-bin pgadmin3

Python and packages

Python 2.7 and 3.4+ are supported.

Download the latest version of the software from the repository and install it:

git clone https://github.com/opendatacube/datacube-core
cd datacube-core
git checkout develop
python setup.py install

It may be useful to use conda to install binary packages:

conda install psycopg2 gdal libgdal hdf5 rasterio netcdf4 libnetcdf pandas

Note

Usage of virtual environments is recommended