Great - though the term "search" is still misleading/misinterpreted especially 
for new users 

Thanks
AJ 

-----Original Message-----
From: [email protected] [mailto:[email protected]] 
Sent: Thursday, July 16, 2009 11:09 AM
To: Jalal, Abdel
Cc: [email protected]; [email protected]
Subject: Re: [pkg-discuss] SUNWcs missing from repo?

Here is a good reference wiki:

http://wikis.sun.com/display/OpenSolaris/FrequentlyUsedIPSCommandsDemo

"pkg search" looks for actions, not package names. The output you are 
seeing with the "*" is the matches for the dependency inside other packages:

$ pkg search -s http://pkg.opensolaris.org/release babel_install*
INDEX      ACTION    VALUE                     PACKAGE
depend     depend    [email protected]   pkg:/[email protected]
depend     depend    [email protected]   
pkg:/[email protected]
depend     depend    [email protected]   pkg:/[email protected]

To find if a package is in a repo, you can use "pkg info". No "-s" 
option, though:

$ pkg info -r SUNWcs
          Name: SUNWcs
       Summary: Core Solaris
      Category: System/Core
         State: Installed
     Publisher: opensolaris.org
       Version: 0.5.11
 Build Release: 5.11
        Branch: 0.118
Packaging Date: July  7, 2009  9:19:31 PM
          Size: 24.69 MB
          FMRI: pkg:/[email protected],5.11-0.118:20090707T211931Z

-- Alan

Jalal, Abdel wrote:
> Thanks Paul for the updates. This is really misleading and in my opinion it's 
> a bug as you can't search for a specific package without using the wildcard.
>
> Thanks
> Abdel Jalal
>
> ________________________________
> From: [email protected] [mailto:[email protected]]
> Sent: Thursday, July 16, 2009 8:05 AM
> To: Jalal, Abdel
> Cc: [email protected]
> Subject: Re: SUNWcs missing from repo?
>
> Actually all the packages listed in the default manifest are in fact in the 
> repo  but the syntax of "pkg search" can be tricky/misleading.
>
> This does not work
> pkg search -s http://pkg.opensolaris.org/release SUNWcs
> pkg search -s http://pkg.opensolaris.org/release babel_install
>
> This does work
> pkg search -s http://pkg.opensolaris.org/release SUNWcs*
> pkg search -s http://pkg.opensolaris.org/release babel_install*
>
> I get the same results when as above I do a search on the  repository web site
>
> -paul
>
>
>
> On 07/15/09 16:58, Jalal, Abdel wrote:
> Hello,
>
> We suspect that SUNWcs is missing from the repo as we did a search and did 
> not get any output and this may cause the install to fail as this pkg is 
> included in the default manifest. Paul Neary has confirmed it and also 
> suspects the package may be missing from the repo. Can anybody confirm this?
>
> Thanks
> Abdel Jalal
>
>
>
> _______________________________________________
> pkg-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
>   
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to