IRODS: Getting Started

From Define Wiki
Revision as of 12:22, 6 July 2020 by Vipul (talk | contribs)
Jump to navigation Jump to search

The latest release of IRODS is 4.2.8. However, it is preferable to download and install 4.2.7 as some of the plugins needed for additional features in IRODS are only available up to 4.2.7 release.

Enable repositories

$ sudo yum install epel-release wget
$ sudo rpm --import https://packages.irods.org/irods-signing-key.asc
$ wget -qO - https://packages.irods.org/renci-irods.yum.repo | sudo tee /etc/yum.repos.d/renci-irods.yum.repo


Set up Postgresql

  • Mysql can also be used instead of Postgres
$ yum install postgresql-server postgresql-contrib
$ sudo postgresql-setup initdb

Edit pg_hba.conf according to preferred authentication

$ cat /var/lib/pgsql/data/pg_hba.conf
# TYPE  DATABASE        USER            ADDRESS                 METHOD

# "local" is for Unix domain socket connections only
local   all             all                                     trust
# IPv4 local connections:
host    all             all             127.0.0.1/32            password
# IPv6 local connections:
host    all             all             ::1/128                 password


$ sudo systemctl enable postgresql
$ sudo systemctl start postgresql

$ sudo su - postgres
postgres$ psql
psql> CREATE USER irods WITH PASSWORD 'testpassword';
psql> CREATE DATABASE "ICAT";
psql> GRANT ALL PRIVILEGES ON DATABASE "ICAT" TO irods;