Skip to end of metadata
Go to start of metadata

Note: Ignore the comments below, they relate to a previous version of this page.

In a SmartOS zone

If you are working in a SmartOS zone, pkgin is already installed. See the "Post-Install Steps" section on to see some commonly-used pkgin/pkgsrc commands.

In the Global zone

If you wish to install pkgsrc into the global zone, go to and run the commands listed under the "64-bit tools (SmartOS GZ)" package set.

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.