It is generally assumed that the global zone is used for management of zones, and work is done in local zones.
If you desire, however, pkgsrc may be installed in the global zone. These instructions are for installing in the global zone. pkgin is already installed inside vm's (zones), and following these instructions inside a OS-virtual container will probably break that installation of pkgin.
While not strictly necessary, you may wish to have persistent storage set up.
as root, enter /:
Then you must download the latest pkgsrc bootstrap image, and unpack it:
Now, reach out to the core pkgsrc tools to rebuild the package meta database:
and then update pkgin's database:
pkgin is now installed and ready for use. 'man pkgin' or 'pkgin help' for more information on the pkgin tool.