Correctly Setting Up the Development Repository

OpenSolaris comes with a single repository configured, known as the release repository: http://pkg.opensolaris.org/release. The packages in the release repository are updated roughly every 6 months when a new release of OpenSolaris occurs, that last being OpenSolaris 2009.06 (June 2009).

Meanwhile, development toward the next release of OpenSolaris is happening at a rapid pace. For those of you unwilling to wait for next scheduled release, you have the option of upgrading to a development build of OpenSolaris, which is produced every 2 weeks (the development repository is updated roughly 10 days after the wod of stuff (WOS) build - see the WOS schedule).

Understandably, the development build will not have gone through the same quality assurance process as the release build, so be sure to read the release notes and expect some bumps along the way.

If you're going to update to a development build, it's important to note that as of build 127, you can no longer assign random names to the repositories (see bug 11532). The publisher name must match that which is set in the repository, and for the http://pkg.opensolaris.org/dev/ repository, the publisher name is opensolaris.org.

If you're on a build prior to 127, it's not uncommon to find yourself with a setup like the following:

bleonard@os200906:~$ pkg publisher
PUBLISHER                             TYPE     STATUS   URI
dev                      (preferred)  origin   online   http://pkg.opensolaris.org/dev/
opensolaris.org                       origin   online   http://pkg.opensolaris.org/release/
To fix this erroneous configuration, just correctly set opensolaris.org as the preferred publisher pointing to the development repository:
bleonard@os200906:~$ pfexec pkg set-publisher -PO http://pkg.opensolaris.org/dev/ opensolaris.org

Then remove the incorrectly named development publisher:

bleonard@os200906:~$ pfexec pkg unset-publisher dev

And now your development repository is correctly configured:

bleonard@os200906:~$ pkg publisher
PUBLISHER                             TYPE     STATUS   URI
opensolaris.org                       origin   online   http://pkg.opensolaris.org/dev/

Note, when build 133 comes out, you will no longer have to specify a publisher name when setting a publisher. The new syntax will be as follows:
pkg set-publisher -p http://pkg.opensolaris.org/dev
Comments:

It isn't necessary to remove the opensolaris.org publisher before executing 'pfexec pkg set-publisher -PO http://pkg.opensolaris.org/dev/ opensolaris.org'. The -O causes pkg(1) to replace all existing repository origins with only the one you specified.

Posted by Shawn on February 12, 2010 at 10:40 AM GMT #

Thanks again Shawn. I've updated the entry. Note, I was just following the release notes :-):

"If there is a publisher "publisher name" defined
for the http://pkg.opensolaris.org/release/ origin URI, remove this first"

Posted by Brian Leonard on February 12, 2010 at 02:56 PM GMT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

The Observatory is a blog for users of Oracle Solaris. Tune in here for tips, tricks and more as we explore the Solaris operating system from Oracle.

Connect with Oracle Solaris:


Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today