Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Package management is done with super-user privileges (when running as a normal user with rights to elevate, prepend sudo or pfexec to the commands below).Set

Syntax for adding a

...

repository

...

:;
Code Block
titleSyntax for adding a repository
# pkg set-publisher -O g repository_url repository_name

Syntax for replacing a repository

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

Example of replacing a repository

Code Block
titleExample of replacing a repository
# pkg set-publisher \
-G http://pkg.openindiana.org/dev hipster-2015 \
-g https://pkg.openindiana.org

Search for a package (in remote repositories):

Code Block
:;/hipster openindiana.org

Listing repositories

Code Block
titleListing repositories
# 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/

 

Currently supported repositories for OpenIndiana Hipster

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

Searching for IPS packages

Code Block
# pkg search -prp git

...

Installing an IPS package

...

Code Block
:;# pkg install git

The above is the "native" OpenIndiana package management, but some packages may be missing or outdated.

Upgrading a package

Code Block
titleUpgrading a package
# pkg update git

Upgrading all the packages on the system

Code Block
titleUpgrading the system
# pkg update


Option 2: Install software from SmartOS repositories via pkgin


All illumos-based operating systems, like OmniOS, 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.

...