Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Pkgadd w/administrative file

Status
Not open for further replies.

tech84

Technical User
May 18, 2000
126
0
0
US
I'm studying for the first Solaris System Admin test, and the book talks about using pkgadd -na <administrative file> -r <response file>. But it gives no examples of such a files. Does anyone have the time and patience to give me a simple example of pkgadd using an administrative file and a response file? I understand how they work, but it would be helpful, I think, if I could see it in action.

Thanks!

Mike
[morning]
 

hi

-n Installation occurs in non-interactive mode.The
default mode is interactive.

-a admin.
Define an installation administration file admin, to
be used in place of the default administration file.
The token none overrides the use of any admin file,
and thus forces interaction with the user. Unless a
full path name is given, pkgadd first looks in the
current working directory for the administration file.
If the specified administration file is not in the
current working directory, pkgadd looks in
/var/sadm/install/admin directory for the administra-
tion file.

-r response
Identify a file or directory which contains output
from a previous pkgask(1M) session. This file supplies
the interaction responses that would be requested by
the package in interactive mode. response must be a
full pathname.

When transferring a package to a spool directory, the -r,
-n, and -a options cannot be used.

The -r option can be used to indicate a directory name as
well as a filename. The directory can contain numerous
response files, each sharing the name of the package with
which it should be associated. This would be used, for exam-
ple, when adding multiple interactive packages with one
invocation of pkgadd.

Each package would need a response file. If you create
response files with the same name as the package (for exam-
ple, pkinst1 and pkinst2), then name the directory in which
these files reside after the -r.

The -n option causes the installation to halt if any
interaction is needed to complete it.

If the default admin file is too restrictive, the adminis-
tration file may need to be modified to allow for total
non-interaction during a package installation. See admin(4)
for details.

regards ph
 
Thanks for your reply! What I'm really looking for, though, is examples of admin and response files. Is it possible to give one of each, or would that be too much of a pain?

Thanks!

Mike
[morning]
 
Oh, never mind! I checked out the man page for admin, and got the whole skinny. I was confused before because I was looking at the man page for sccs-admin file by mistake. Sorry... I'm a total Solaris newbie! I finally used man -f admin to figure out what was going on.

Thanks Apricot/ph!

Mike
[morning]
 
pkgask -d <path to cdrom> -r /abc SUNWasvem

It will ask you few questions,answer the questions and response file will be created.

#pkgadd -d <path to cdrom> -r /abc SUNWasvem

#pkgadd -na auto -d . SUNWsadml


# pkgadd -d device -n -r response -a admin pkginst
# pkgadd -d disc1 -n -r /pkgA/myresponse mypkg


 
In the example:

#pkgadd -na auto -d . SUNWsadml

is &quot;auto&quot; simply the name of the admin file?
 
Hi Tech84,

Here is the contents off the administrative file that I use:

mail=root
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
space=ask
setuid=nocheck
action=nocheck
basedir=default

This file works great for me on normal directory-type Sun packages. I got the syntax from the Advanced Installation guide for Solaris8.


Unfortunately, I can't get it to work with &quot;streaming&quot; packages from the site. If anyone reading this can shed some light it would be much appreciated.

Good luck with the exam.

Pete
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top