Link to home
Start Free TrialLog in
Avatar of missymadi
missymadi

asked on

How do I install Postgresql 9.0 silently on a Linux box?

Experts,

      I want to install Postgresql 9.0 silently on my RHEL 5.5. I have the command (must be logged in as SU.
./postgresql-9.0.1-1-linux.bin  --mode unattended   --prefix  /usr/local/PostgreSQL   --datadir  /opt/aai/CDSDB_ROOT/DATA

How do I create a file that changes the user to SU and runs the above command line options? I know how to do this in Windows(create .sql file then a bat to run it) but how do I do this in Linux?

Thanks, Missymadi
Avatar of mccracky
mccracky
Flag of United States of America image

What do you really want to do?  The above doesn't really make sense. If it's really your box, just install it.
Avatar of missymadi
missymadi

ASKER

How do either one of the responses address a SILENT installation of Postgresql?

I am looking for the equivelent to a Windows silent installation, for example, an .sql file that is initiated with a batch file.
ASKER CERTIFIED SOLUTION
Avatar of earth man2
earth man2
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here was the command line I used for the unattended installation of Postgresql 9.0

./postgresql-9.0.1-1-linux.bin --mode unattended --prefix /usr/local/PostgreSQL --datadir /opt/mycomp/CD_ROOT/DATA