Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Option 1:

...

Installing software from OpenIndiana repositories via IPS

OpenIndiana uses the Image Packaging System - IPS, pkg(5) , the same package management system , IPS, as as Oracle Solaris 11, and .
Oracle is thus far continuing Sun's practice of providing well written manuals: http://download.oracle.com/docs/cd/E19963-01/html/820-6572/index.html

To find more information on IPS/ pkg(5), using man command, use:

Code Block
$ man -s 5 pkg

The command line package manager command is 'pkg'.
To find more information about pkg(1) , using man command, use:

Code Block
$ man pkg

In IPS parlance, we are talking about adding publishers in place of term repositories.
Package management is performed with super-user privileges (prepend sudo or pfexec to the using accounts with elevated Role Based Access Control (RBAC) privileges (using pfexec or sudo before commands shown below).

...

Adding publisher

Code Block
$ pfexec bash
# pkg set-publisher -g repository_url repository_name

...

Replacing publisher

Code Block
# pkg set-publisher -G old_repository_url -g new_repository_url repository_name

...

Replacing publisher - example

Code Block
# pkg set-publisher \
-G http://pkg.openindiana.org/hipster-2015 \
-g https://pkg.openindiana.org/hipster openindiana.org

...

Listing publishers configured on the local system:

Code Block
# pkg publisher
 
PUBLISHER                   TYPE     STATUS P LOCATION
openindiana.org             origin   online F https://pkg.openindiana.org/hipster/
hipster-encumbered          origin   online F https://pkg.openindiana.org/hipster-encumbered/

'OpenIndiana Hipster hipster' repositories (current as of OctoberFebruary, 20162017)

openindiana.orghttps://pkg.openindiana.org/hipsterHipster primary package repository
hipster-encumberedhttps://pkg.openindiana.org/hipster-encumberedHipster encumbered license packages
localhostoihhttp://sfe.opencsw.org/localhostoih3rd party Spec Files Extra (SFE) packages

Syntax for searching remotely for IPS packages

Code Block
# pkg search -prp package_name

Syntax for installing an IPS package

...

Code Block
# pkg update package_name

...

Upgrading all the packages on the system, with linked image Solaris Zones. (-r) and verbose output (-v)

Code Block
# pkg update -v -r

Option 2: Install pkg -r updates all Solaris Zones , if not issued, thay are kept unupdated untill -r command is issued on update or they are updated separately.

 

Option 2:  Install software from SmartOS repositories via pkgin


All illumos-based operating systems, like OmniOS, OpenIndiana Openindiana and SmartOS can use the repository from Joyent/SmartOS. Its main advantage is that you find there a lot of very up to date packages.

...

  1. add /opt/local/{s,}bin where all software is installed to your PATH (in your shell, maybe save to your .profile):

    Code Block
    PATH=/opt/local/sbin:/opt/local/bin:$PATH 
    export PATH
  2. install the bootstrap-loader: (use the loader according to your repository, see http://pkgsrc.joyent.com/packages/SmartOS/bootstrap/)

    Code Block
    :; curl httphttps://pkgsrc.joyent.com/packages/SmartOS/bootstrap/bootstrap-2014Q22016Q4-x86_64.tar.gz | gtar -zxpf - -C /  
  3. update the repository database:

    Code Block
    :; pkgin -y update
  4. install the needed package, for example – Apache 2.4.6:

    Code Block
    :; pkgin -y install apache-2.4.6 

    or, just for newest 2.4:

    Code Block
    :; pkgin -y install apache-2.4

...

You need a compiler like gcc; download the sources, switch to the folder with your sources (make the content of your 'sourcefolder' executable recursively) and compile via:

...

For building software from NetBSD pkgsrc from sources, see page: pkgsrc in OI .

Option 4: Build software using oi-userland


For contributing to oi-userland, see page: Building with oi-userland