Wednesday, September 21, 2011

HOWTO : Silently remove a package in Solaris

Use at own risk.

Create a file called 'noask' with the following info:

Bmail=
instance=overwrite
partial=nocheck
runlevel=nocheck
idepend=nocheck
rdepend=nocheck
basedir=default
space=nocheck
setuid=nocheck
conflict=nocheck
action=nocheck

After the file is created you should be able to run:
# pkgrm -n -a noask PKGNAME

Useful for automation.

No comments:

Post a Comment