Install new package in an OpenIndiana zone

Today I attempted to install a new package in a zone installed in OpenIndiana.

The pkg install zip command finished by saying that it could not clone.

I found the solution here.

the short way is:

  • stop the zone
  • pkg -R /zones/<zonename>/root update
  • pkg -R /zones/<zonenanme>/root install zip
  • zoneadm -z <zonename> boot
After this the package is installed in the zone.