Solved

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

Posted on 2010-11-24
5
1,446 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
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 500 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

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…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
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…
Steps to create a PostgreSQL RDS instance in the Amazon cloud. We will cover some of the default settings and show how to connect to the instance once it is up and running.

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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now