Hi there, I need to install the Sun explorer package on hundreds of boxes and am writing a script to install it ..However, When you run
pkgadd -d SUNWexplo
It is interactive .....well i say interactive ...it gives you two questions both of which I answer a simple yes to.
So i tried
pkgadd -n SUNWexplo
but it says
"Installation of <SUNWexplo> was suspended (interaction required)."
mmmmm, interaction required ..ok, ill use pkgask to create a response file, but when I run
pkgask -r SUNWexplo
i get ....
pkgask: ERROR: package does not contain an interactive request script
so it is interactive, then it isnt interactive .....??? does anybody know if i can get this to install without asking me questions
any help would be greatly appreciated
reborg
September 29, 2006, 8:01pm
2
You need an admin file not a respone file for this package.
Do I still use pkgask for admin files ?
reborg
September 30, 2006, 12:21pm
4
No, you will need to create it manually.
Sorry but how do I create an admin file with just 2 `y`s in it ?
jrck61
May 13, 2008, 11:06am
6
do following
# vi /var/sadm/install/admin/nocheck
mail=
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
space=ask
setuid=nocheck
confiict=nocheck
action=nocheck
basedir=default
# pkgadd -a /var/sadm/install/admin/nocheck -d .
If it is literaly hundreds of boxes, another way of doing it is with expect scripts. You can automate copying the SUNWexplo package to all boxes and installing it.
SUN has released a new product Service Tool Bundle. it is basically a installation script which install many applications like Servicetags, Explorer, sneep. You need not bother about adding these applications manually. The script will do it for you. It is simple and easy to use.
download it from
https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS\_SMI-Site/en\_US/-/USD/ViewProductDetail-Start?ProductRef=STB-2.0-SOL-G-F@CDS-CDS_SMI
That doesn't solve the problem, as it is also interective.
Create
May 16, 2008, 3:51pm
10
Please do what was suggested here. This will solve all of your problems.
jrck61:
do following
# vi /var/sadm/install/admin/nocheck
mail=
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
space=ask
setuid=nocheck
confiict=nocheck
action=nocheck
basedir=default
# pkgadd -a /var/sadm/install/admin/nocheck -d .