...
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 |
---|
:;title | Syntax for adding a repository |
---|
|
# pkg set-publisher -O g repository_url repository_name |
Syntax for replacing a repository
Code Block |
---|
title | Replacing a repository |
---|
|
# pkg set-publisher -G old_repository_url -g new_repository_url repository_name |
Example of replacing a repository
Code Block |
---|
title | Example 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 |
---|
title | Listing 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
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 |
---|
|
# pkg update git |
Upgrading all the packages on the system
Code Block |
---|
title | Upgrading 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.
...