Recover Solaris 11 pkg database

Hi,

I was messing with pkgsrc and wanted to start fresh so I manually deleted the /var/pkg directory on Solaris 11 :eek: (of course I was supposed to delete the /var/db folder instead)...

Anyways... I've basically bricked the Solaris11 Package Manager. Do you know if there is any way to recreate the /var/pkg database without doing a full format? I've had no luck trying to find a simple rebuild command or anything like that.

Any pkg * command returns the error:

      pkg: No image rooted at '/'

but everything else in the OS still functions normally.

Thanks!

Do you have any older boot environments to which you can fallback to ?

beadm list

You might want to revert to that.

Regards.
Peasant.