Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to install posgresql on F16 to work with my rails installation. Using this guide

But when I run service postgresql initdb I get this error

Unknown operation initdb

share|improve this question

Fedora 16 has migrated to systemd from traditional init.d layout, so you should run su - postgres -c "PGDATA=/var/lib/pgsql/data initdb" directly, see Fedora wiki

share|improve this answer

Reading the link you provide it says

For PostgreSQL version 9.0 and above, the <name> is postgresql-9.0...

and later is says

service <name> initdb

so I'm guessing you want

service postgresql-9.0 initdb
share|improve this answer

You can now use sudo postgresql-setup initdb.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.