SUMMARY: Bypassing prompts in 'pkgrm'

From: Farthing W. Fox (fox@vulpes.net)
Date: Fri Feb 26 1999 - 11:37:57 CST


My original question:
> I have a situation where 'pkgrm' appears in a script, and would like
> 'pkgrm' to effectively remove the package without any questions asked.
> However, even with trying to use the '-n' option, or trying to echo 'y'
> into the command, it still prompts for user input.
>
> Is there any way that we can force the package to be removed such that
> this script will work, or would we be looking at something like writing an
> expect script?

The solution was by use of the 'admin' file, as described to me by
Mark (Mookie) <mark@zang.com> who gave me the most complete answer.

> I'm not sure about pkgrm, but I'm reasonably sure it'll perform the
> same as pkgadd in respect to the use of an admin file.
>
> # cat admin
> mail=
> instance=overwrite
> partial=nocheck
> runlevel=nocheck
> idepend=nocheck
> rdepend=nocheck
> space=nocheck
> setuid=nocheck
> conflict=nocheck
> action=nocheck
> basedir=default
>
> # pkgrm -n -a admin SUNWciu8
> Removal of <SUNWciu8> was successful.

Thanks also to:
 Asim Zuberi <asim@colltech.com>
 sam.vilain@nz.unisys.com
 Sweth Chandramouli <sweth@astaroth.nit.gwu.edu>

-- 
F W Fox
fox@vulpes.net
       Old machines never die - They just get replaced by emulators



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:13:16 CDT