# Pkgadd problem

**URL:** <https://community.unix.com/t/pkgadd-problem/165668>\
**Category:** Solaris\
**Created:** [September 29, 2006, 12:08pm UTC](https://community.unix.com/t/pkgadd-problem/165668 "2006-09-29T12:08:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![hcclnoodles](https://community.unix.com/letter_avatar/hcclnoodles/32/6_449c533f586939b6e5f246632a46421f.png) [@hcclnoodles](https://community.unix.com/u/hcclnoodles)\
**Post date:** [September 29, 2006, 12:08pm UTC](https://community.unix.com/t/pkgadd-problem/165668/1 "2006-09-29T12:08:44Z")

</div>

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

```nohighlight
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

```nohighlight
pkgadd -n SUNWexplo

```

but it says

```nohighlight
"Installation of <SUNWexplo> was suspended (interaction required)."

```

mmmmm, interaction required ..ok, ill use pkgask to create a response file, but when I run

```nohighlight
pkgask -r SUNWexplo

```

i get ....

```nohighlight
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

---

<div class="post-metadata">

**Author:** ![reborg](https://community.unix.com/user_avatar/community.unix.com/reborg/32/167_2.png) [@reborg](https://community.unix.com/u/reborg)\
**Post date:** [September 29, 2006, 8:01pm UTC](https://community.unix.com/t/pkgadd-problem/165668/2 "2006-09-29T20:01:27Z")

</div>

You need an admin file not a respone file for this package.

---

<div class="post-metadata">

**Author:** ![hcclnoodles](https://community.unix.com/letter_avatar/hcclnoodles/32/6_449c533f586939b6e5f246632a46421f.png) [@hcclnoodles](https://community.unix.com/u/hcclnoodles)\
**Post date:** [September 30, 2006, 7:26am UTC](https://community.unix.com/t/pkgadd-problem/165668/3 "2006-09-30T07:26:31Z")

</div>

Do I still use pkgask for admin files ?

---

<div class="post-metadata">

**Author:** ![reborg](https://community.unix.com/user_avatar/community.unix.com/reborg/32/167_2.png) [@reborg](https://community.unix.com/u/reborg)\
**Post date:** [September 30, 2006, 12:21pm UTC](https://community.unix.com/t/pkgadd-problem/165668/4 "2006-09-30T12:21:35Z")

</div>

> [@hcclnoodles](#):
>
> Do I still use pkgask for admin files ?

No, you will need to create it manually.

---

<div class="post-metadata">

**Author:** ![hcclnoodles](https://community.unix.com/letter_avatar/hcclnoodles/32/6_449c533f586939b6e5f246632a46421f.png) [@hcclnoodles](https://community.unix.com/u/hcclnoodles)\
**Post date:** [October 2, 2006, 6:16am UTC](https://community.unix.com/t/pkgadd-problem/165668/5 "2006-10-02T06:16:40Z")

</div>

Sorry but how do I create an admin file with just 2 `y`s in it ?

---

<div class="post-metadata">

**Author:** ![jrck61](https://community.unix.com/letter_avatar/jrck61/32/6_449c533f586939b6e5f246632a46421f.png) [@jrck61](https://community.unix.com/u/jrck61)\
**Post date:** [May 13, 2008, 11:06am UTC](https://community.unix.com/t/pkgadd-problem/165668/6 "2008-05-13T11:06:50Z")

</div>

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 .

---

<div class="post-metadata">

**Author:** ![System\_Shock](https://community.unix.com/user_avatar/community.unix.com/system_shock/32/368_2.png) [@System\_Shock](https://community.unix.com/u/System_Shock)\
**Post date:** [May 13, 2008, 12:41pm UTC](https://community.unix.com/t/pkgadd-problem/165668/7 "2008-05-13T12:41:31Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![vikashtulsiyan](https://community.unix.com/letter_avatar/vikashtulsiyan/32/6_449c533f586939b6e5f246632a46421f.png) [@vikashtulsiyan](https://community.unix.com/u/vikashtulsiyan)\
**Post date:** [May 15, 2008, 8:17am UTC](https://community.unix.com/t/pkgadd-problem/165668/8 "2008-05-15T08:17:09Z")

</div>

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](https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS%5C_SMI-Site/en%5C_US/-/USD/ViewProductDetail-Start?ProductRef=STB-2.0-SOL-G-F@CDS-CDS_SMI)

---

<div class="post-metadata">

**Author:** ![system](https://community.unix.com/uploads/default/original/2X/c/c7e9e16a595259edafe88615719d5c5dcda035c2.png) [@system](https://community.unix.com/u/system)\
**Post date:** [May 15, 2008, 8:20am UTC](https://community.unix.com/t/pkgadd-problem/165668/9 "2008-05-15T08:20:20Z")

</div>

> [@vikashtulsiyan](#):
>
> 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](https://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS%5C_SMI-Site/en%5C_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.

---

<div class="post-metadata">

**Author:** ![Create](https://community.unix.com/letter_avatar/create/32/6_449c533f586939b6e5f246632a46421f.png) [@Create](https://community.unix.com/u/Create)\
**Post date:** [May 16, 2008, 3:51pm UTC](https://community.unix.com/t/pkgadd-problem/165668/10 "2008-05-16T15:51:35Z")

</div>

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 .
