Package creation - How do I make it *really* non-interactive

Hi,

I'm in the middle of creating packages of my company's software and I've hit a snag. One of the requirements is that the installs be script driven and remotely installable to many servers with no interaction (much like official Sun packages are when using the patching tools). The problem is that I can't get my packages to stop gabbing. :)

I'm using the following command: pkgadd -n -d <package name> all

We're not using any request files to get more information from the admins and any previous instances of the package are removed before the install is attempted. We are using one post install script to check for and create any links if necessary. Because of the post install script, the admin is prompted to make sure he still wants to install the package. What I have been unable to figure out, is how to stop that prompt from happening, or a way to handle it other than this dirty solution: yes | pkgadd -d [...] all.

Any help is greatly appreciated!

[1004 byte] By [cpstocka] at [2007-11-26 19:58:57]
# 1

pkgadd has a flag "-a admin", where you can manually specify which file to check to determine "administrative behavior".

default (systemwide) location is /var/sadm/install/admin/default

Basically, copy system file over, change "action=ask" to "action=nocheck", and write a wrapper script to install the packages.

Be careful about using "nocheck" in other areas of this file, you can get quite unpopular with customers. :-)

WRWindsora at 2007-7-9 22:55:14 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Thanks for the tip! I am now able to get things to behave the way I want and that is a good thing...most of the time. ;-)

I do have another issue that I'm dealing with and so far I was hoping you could point me in the direction of some good documentation. Our company uses Veritas clustering and many of these packages will be installed on said clusters. My problem is that I don't know how Sun handles package management for clusters. Do you know of any good docs for this?

Thanks again for your previous help!

cpstocka at 2007-7-9 22:55:14 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 3
sadly, my Veritas Cluster fu is weak. Sorry, I can't help you with that.
WRWindsora at 2007-7-9 22:55:14 > top of Java-index,Solaris Operating System,Solaris 10 Features...