Problems when removing a package with pkgutil -r

Hello community

I want to remove the package CSWperl but it don't let me. This is the following error. If I do a pkgutil -l perl it shows that is installed.

 # pkgutil -l perl

Then I proceed to remove the package and this happens.

# pkgutil -r CSWperl
Checking integrity of /var/opt/csw/pkgutil/catalog.ftp.heanet.ie_pub_opencsw_unstable_sparc_5.10 with gpg.
gpg: Signature made Wed May 08 15:53:40 2013 AST using DSA key ID 9306CC77
gpg: Good signature from "OpenCSW catalog signing <>"
gpg: WARNING: This key is not certified with a trusted signature!
gpg:          There is no indication that the signature belongs to the owner.
Primary key fingerprint: 4DCE 3C80 AAB2 CAB1 E60C  9A3C 05F4 2D66 9306 CC77
Solving needed dependencies ...
Looking at installed packages ...
Examining dependencies for:
  CSWperl (in use)
  CSWbdb48 (in use)
  CSWlibgdbm4 (in use)
  CSWcommon (in use)
Nothing to remove.

asked: 2013-05-10 by: joepr

Dagobert answers:

It looks like CSWperl is still in use. Try this to find out which packages are depending on it:

pkgrm CSWperl

bonivart answers:

Add --debug and among lots of other extra output you will see what depends on what. But it's probably cleaner just to use pkgrm as Dagobert suggests if you're curious, it will also let you proceed regardless.