More : https://groups.google.com/forum/#!topic/irod-chat/D7I5x-biw7I
My Script looks like this : (please note do a FULL DB-backup before - better safe than sorry !! )
### BASH
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/centos7/irods-database-plugin-mysql-1.8-centos7-x86_64.rpm
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/centos7/irods-database-plugin-postgres-1.8-centos7-x86_64.rpm
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/centos7/irods-database-plugin-postgres93-1.8-centos7-x86_64.rpm
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/centos7/irods-dev-4.1.8-centos7-x86_64.rpm
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/centos7/irods-icat-4.1.8-centos7-x86_64.rpm
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/centos7/irods-icommands-4.1.8-centos7-x86_64.rpm
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/centos7/irods-resource-4.1.8-centos7-x86_64.rpm
wget ftp://ftp.renci.org/pub/irods/releases/4.1.8/centos7/irods-runtime-4.1.8-centos7-x86_64.rpm
rpm -U irods-dev-4.1.8-centos7-x86_64.rpm
rpm -U irods-icat-4.1.8-centos7-x86_64.rpm
rpm -U irods-runtime-4.1.8-centos7-x86_64.rpm
rpm -U irods-database-plugin-postgres-1.8-centos7-x86_64.rpm
postgresql-setup initdb
systemctl start postgresql
systemctl enable postgresql