Skip to end of metadata
Go to start of metadata

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 -y up

pkgin is now installed and ready for use. 'man pkgin' or 'pkgin help' for more information on the pkgin tool.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Sep 04, 2013

    I have followed those exact same steps above using 

    # cd /
    # curl -k | gzcat | tar -xf -
    # pkg_admin rebuild
    # pkgin -y up

    Output of that was:

    pkg_admin: heimdal-1.5.2nb2: Symlink `/opt/local/man/man5/qop.5' exists and is in +CONTENTS but target does not exist!
    Stored 138992 files and 68 explicit directories from 687 packages in /opt/local/pkg/pkgdb.byfile.db.

    I thought it all went well, except it didn't!

    now whatever command i run i get this error:
    # ls ls: fatal: /opt/local/lib/ wrong ELF class: ELFCLASS64

    # vim vim: fatal: /opt/local/lib/ wrong ELF class: ELFCLASS64

    Please help!


    1. Sep 21, 2013

      Bach, try with this package:

      works for me nicely, just installed on fresh SmartOS install.