You can do all of this at the command-line.
Firstly, install postgres and start the postmaster service.
Secondly, add a new user. Normally, you will need to be the postgres user to do this; the best command I've found to work portably is:
Code:
su -c "su postgres -c 'adduser yourloginname'"
(This is because, in some setups, you can only log in if your UNIX name matches your postgresql user name).
You will be prompted if your user should be allowed to create databases; say yes. (You can create users as well if you like).
Next, create the database:
Then, load the dump file:
Code:
psql dbname < dumpfile
See
www.postgresql.org/docs/ for more information.