Web Stack Package Repository

A little while I ago I introduced the Web Stack Experimental Repository. It's a great way of installing both early access (in development) packages as well as packages that won't necessarily go to any formal integration. The only drawback has been that accessing the repository has required a small patch to pkg (the IPS client).

Great news!

pkg bug 767 has been fixed this week which means it is no longer necessary to modify pkg to install packages from the Web Stack repository!

To recap the now simplified instructions, here's how you can install one of our experimental packages:

1. Make sure you have the latest IPS

1.1 If you are on a Nevada build:

Nevada builds don't have IPS by default so you need to compile and install it:

% hg clone ssh://anon@hg.opensolaris.org/hg/pkg/gate
% cd gate/src
% make
% make install
% su
# make link

The 'make link' target will make symlinks under /usr/bin and elsewhere such that you can just invoke 'pkg' conveniently.

1.2 If you are on Indiana:

As long as you install Indiana RC2 or later you're all set out of the box!

(If you are on an older build of Indiana you could follow the instructions shown above and just get and build the latest from the source tree. The only additional complexity is that since pkg is already part of the system, it might be easier to run it directly from the workspace instead of attempting to 'make link', but that might cause other issues I have not tested. Better to upgrade.)

2. Add the Web Stack repository to your list of repositories:

Assuming you don't already have some other authority called "webstack" (if you do, pick a different name):

# pkg set-authority -O http://pkg.opensolaris.org/webstack webstack

(or prefix the invocation with pfexec if you're not su'd to root)

3. Install something!

Let's say you want to try the experimental Varnish package:

# pkg refresh
# pkg search -r varnish
INDEX      PACKAGE
basename   pkg:/SUNWvarnish@0,5.11-1:20080408T160306Z
# pkg install SUNWvarnish
DOWNLOAD                                    PKGS       FILES     XFER (MB)
Completed                                    1/1       28/28     0.83/0.83 

PHASE                                        ACTIONS
Install Phase                                  50/50 

4. Enjoy!

Feedback is welcome as always, please join the Web Stack list for any comments. If you'd like to contribute any package to this experimental repository, check with me on the list and I'll point you in the right direction...


Comments:

Step 2 is now a one-liner: "pfexec pkg set-authority -O http://pkg.opensolaris.org/webstack/ webstack" (or, as root, without the pfexec). -- Stephen

Posted by Stephen Hahn on April 24, 2008 at 01:39 PM PDT #

Nice! I've updated the text accordingly.

Posted by Jyri on April 24, 2008 at 02:32 PM PDT #

With OpenSolaris 2008.05, I get:
pfexec pkg install SUNWwebstack-build
Creating Plan -Traceback (most recent call last):
File "/usr/bin/pkg", line 1440, in ?
ret = main_func()
File "/usr/bin/pkg", line 1406, in main_func
return install(img, pargs)
File "/usr/bin/pkg", line 445, in install
verbose = verbose, noexecute = noexecute)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 1282, in make_install_plan
ip.evaluate()
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 344, in evaluate
self.evaluate_fmri(f)
File "/usr/lib/python2.4/vendor-packages/pkg/client/imageplan.py", line 187, in evaluate_fmri
m = self.image.get_manifest(pfmri)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 516, in get_manifest
m = self._fetch_manifest(fmri)
File "/usr/lib/python2.4/vendor-packages/pkg/client/image.py", line 468, in _fetch_manifest
mcontent = retrieve.get_manifest(self, fmri)
File "/usr/lib/python2.4/vendor-packages/pkg/client/retrieve.py", line 75, in get_manifest
raise NameError, "could not retrieve manifest '%s' from '%s'" % \\
NameError: could not retrieve manifest 'SUNWwebstack-build@0%2C5.11-1%3A20080501T163704Z' from 'http://pkg.opensolaris.org/webstack'

Posted by ludo on May 12, 2008 at 08:06 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

jyri

Search

Top Tags
Categories
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