Versions Compared

Key

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

...

Syntax for adding a repository

Code Block
titleSyntax for adding a repository
# pkg set-publisher -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/hipster-2015 \
-g https://pkg.openindiana.org/hipster openindiana.org

...

Command for listing the repositories configured on the local system

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/

...

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 -p git

...

package_name

Syntax for installing an IPS package

Code Block
# pkg install git

...

package_name

Syntax for upgrading a package

Code Block
titleUpgrading a package
# pkg update git

...

package_name

Command for upgrading all the packages on the system

Code Block
titleUpgrading the system
# pkg update


Option 2: Install software from SmartOS repositories via pkgin

...