On Sun, Nov 09, 2008 at 01:39:31AM -0800, Terence Ng wrote: > I have just installed OpenSolaris 2008.05, and have > pfexec pkg refresh > pfexec pkg install SUNWipkg at 0.5.11-0.86 > pfexec pkg install entire at 0.5.11-0.86 > > How come there is no response when I: > pfexec pkg search SUNWapch22 > > Do I have to install it to use the search command? > Do I have to image-update to get Apache2.2?
"pkg search" operates only on installed packages. If you add the -r option, it will perform the search on the depots indicated by your authorities, so "pkg search -r SUNWapch22" should work. Note that - "pkg search" (with or without -r) doesn't require privilege, so the pfexec is unnecessary - "pkg list -a" will tell you about all packages your authorities know about, and with an argument of one or more package names ("pkg list -a SUNWapch22"), it'll tell you what versions it's available under. You don't have to image-update in order to get Apache; you just have to install it. Though I would recommend upgrading to the 2008.11 release candidate anyway, as it's much better than what we had back in May. Danek