?
Solved

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

Posted on 2010-11-24
5
Medium Priority
?
1,648 Views
Last Modified: 2012-05-10
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
0
Comment
Question by:missymadi
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 12

Expert Comment

by:mccracky
ID: 34206754
What do you really want to do?  The above doesn't really make sense. If it's really your box, just install it.
0
 
LVL 5

Expert Comment

by:vivekpv10
ID: 34210416
0
 

Author Comment

by:missymadi
ID: 34231030
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.
0
 
LVL 22

Accepted Solution

by:
earth man2 earned 2000 total points
ID: 34238655
Postgresql is easy to build from source.  Then prefix and data dir will need to be file system that you have write privileges to.  You may not be able to start normal postgres service which uses a tcp ip port, you should be able to run postgres in single user mode (which is normally used to debug it).
0
 

Author Closing Comment

by:missymadi
ID: 34239215
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
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How many times have you wanted to quickly do the same thing to a list but found yourself typing it again and again? I first figured out a small time saver with the up arrow to recall the last command but that can only get you so far if you have a bi…
It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial
Suggested Courses
Course of the Month9 days, 21 hours left to enroll

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question