Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I place the following into an admin file called noask


Then run pkgadd -a noask -d sed-4.1.5-sol10-x86-local - yet am still queried for:

'Select package(s) you wish to process'

Is there a way around the questioning without doing an "echo yes" at the front?

Thank you

share|improve this question

You do not tell what package to install from the package datastream which might contain more than one package (although it doesn't in your case).

This should work:

pkgadd -a noask -d sed-4.1.5-sol10-x86-local '*'
share|improve this answer
or you could do echo "yes" | pkgadd -a noask -d sed-4.1.5-sol10-x86-local – Paul Jun 10 '10 at 14:07
indeed but the question is precisely asking how to avoid this "echo yes | ..." workaround. – jlliagre Jun 10 '10 at 21:50
good point must have not had my brain completely in gear when typing this comment. – Paul Jun 11 '10 at 7:37
@jlliagre This does not work for me when I install OpenCSW: root@solaris:~# pkgadd -a noask -d '*' ## Downloading... ..............25%..............50%..............75%..............100% ## Download Complete pkgadd: ERROR: no package associated with <*> root@solaris:~# It works if I explicitly pass the package name instead of an asterisk – Andriy Yurchuk Aug 12 '13 at 4:47
@AndriyYurchuk I guess it is because you are passing an URL, not a file as the question is about. It should work if you do it in two steps like 'wget .../now && pkgadd -a noask -d now "*"' – jlliagre Aug 12 '13 at 7:28

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.