On Tue, Dec 11, 2007 at 08:16:17AM +0000, Dermot McCluskey wrote:

> Anoop Rajendra wrote:
> > Lets say I have a package SUNWmypkg in /root
> > I have an IPS server running in localhost.
> > 
> > What command line options should I supply to solaris.py to upload this
> > package to the localhost server. I've tried a few, but nothing obvious
> > jumps out, and since there didn't seem to be much documentation, I'm
> > not sure what to do.
> 
> Create a text file, eg local.i386, whose contents are:
> package SUNWmypkg
> import SUNWmypkg
> end package
> 
> Edit solaris.py, changing cfg (if necessary?) and wos_path (to
> /root in your case), and then run
> % ./solaris.py local.i386
> but I don't think this will handle dependencies.

Er, why do you have to edit the script?  There are -s and -w options to
change those variables.

But if all you're doing is importing a single package, without combining
any packages, dropping any files, adding any files, then solaris.py is
overkill.  You can simply say

    pkgsend send <package>

which will do basically the same thing, but much more simply.  pkgsend
doesn't do any dependency processing, but the dependency analysis you get
with solaris.py isn't meaningful when you're only publishing one package,
as it (currently) only resolves dependencies from the packages that you're
planning on publishing.

> > Also, you mention that either the opensolaris.org  or the localhost
> > server can be used as my default repository. Is there a way to get IPS
> > to use both repositories at the same time, and have "pkg status -a"
> > show packages from both?
> 
> I've been wondering that myself?

Well, there's no way to make "pkg status" look at multiple servers, because
it doesn't look at servers.  But assuming you meant "info" or a default
"search", then it's currently a manual operation.  Edit the cfg_cache file
in the package directory (/var/pkg for full images) and add another
authority section.  Then "info -s" will look at all the known servers, as
will "search -r".  You can make search look at a server of your choice by
specifying "-s <server>", regardless of the current image's authorities.
(We probably ought to make info work the same way.)

Danek
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to