Home

GNUmed database installation


Caution
This procedure will irrevocably delete any GNUmed databases pre-existing in the PostgreSQL server you are installing into.

Follow the upgrade procedures when working with an existing GNUmed database. '''''

Setting up your own GNUmed database for local use involves these steps:

  • installing PostgreSQL

  • installing the GNUmed database package

  • bootstrapping the GNUmed database

These steps need to be run with sufficient privileges, typically as root, or with sudo, on your GNUmed database machine.

Eventually you need to configure PostgreSQL for use with GNUmed clients.

Debian based systems

As root (or with sudo):

  • install PostgreSQL and the GNUmed server package

  • run the bootstrapper to actually setup the database

	$> apt-get install postgresql
	$> apt-get install postgresql-client
	$> apt-get install gnumed-server
	$> gm-bootstrap_server

Other systems and local installs

  • install PostgreSQL (how that is done depends on your system)

  • find out which server version your client needs

  • download that version from the Download Area (assuming version 22.12)

  • unpack the server tarball

  • at this point you may need to make sure OS user "postgres" can access (read/execute) the directory you unpacked into (use chmod or setfacl)

  • run the database bootstrapper

	$> cd /tmp/
	$> tar -xvzf gnumed-server.22.12.tgz
	$> cd gnumed-server.22.12/server/bootstrap/
	$> sudo ./bootstrap-latest.sh

(again, this will delete existing GNUmed databases)