Solved

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

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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to learn Linux? 10 61
wipe a usb using python 5 47
awk to variable in bash 2 43
centos commands 6 53
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…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

773 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