Steve Scargall wrote: > "pkg list" reports on the state of packages in the current image (local). > The order will always be the same unless you install another package or add > flags to the pkg list command. This is why you get the same results when you > change the repository. > > What you probably want to do is use "pkg list -a", "pkg info -r" or more > likely "pkg search -r <token>". > > Hope it helps. > Sorry not made myself too clear, I have been using the -a option. The section below is a better example. What I suppose I wanted to ask is, when I set one AUTHORITY as preferred is it the case if two of them both have the same package it will prefer that one rather than it will only look at that AUTHORITY? Suppose thats the bl**ding obvious conclusion :-) Perhaps it would be nice for pkg list -a to say what authority it came from even if it is only in one of the possible candidates. 51 FSWxwpft (opensolaris.org) 0.5.11-0.101 known u--- 52 FSWxwrtl (dev) 0.5.11-0.105 known ---- 53 FSWxwrtl (opensolaris.org) 0.5.11-0.101 known u--- 54 IPS9menu 0.5.11-2.6 known ---- 55 IPSORBit
Amazing how things can become clearer just by asking. Still not got Haskell by the way, getting an assembler error invalid flag (-) error when trying to get gcc working but that's for another day :-) Thanks for the help. Paul paulj at opensolaris:~$ pfexec pkg set-authority -O http://blastwave.network.com:10000/ blastwave paulj at opensolaris:~$ pfexec pkg authority AUTHORITY URL blastwave http://blastwave.network.com:10000/ opensolaris.org http://pkg.opensolaris.org/release/ dev (preferred) http://pkg.opensolaris.org/dev/ paulj at opensolaris:/var/pkg/catalog$ pfexec pkg authority AUTHORITY URL blastwave (preferred) http://blastwave.network.com:10000/ opensolaris.org http://pkg.opensolaris.org/release/ dev http://pkg.opensolaris.org/dev/ paulj at opensolaris:~$ pfexec pkg list -a | head -10 NAME (AUTHORITY) VERSION STATE UFIX BRCMbnx (dev) 0.5.11-0.105 installed ---- BRCMbnx (opensolaris.org) 0.5.11-0.101 known u--- FSWfontconfig-devel-docs (dev) 0.5.11-0.105 known ---- FSWfontconfig-devel-docs (opensolaris.org) 0.5.11-0.101 known u--- FSWxorg-client-docs (dev) 0.5.11-0.105 known ---- FSWxorg-client-docs (opensolaris.org) 0.5.11-0.101 known u--- FSWxorg-client-programs (dev) 0.5.11-0.105 known ---- FSWxorg-client-programs (opensolaris.org) 0.5.11-0.101 known u--- FSWxorg-clientlibs (dev) 0.5.11-0.105 known ---- paulj at opensolaris:~$ pfexec pkg list -a | grep IPS | head -5 IPS9menu 0.5.11-2.6 known ---- IPSORBit 0.5.11-2.6 known ---- IPSXvfb 0.5.11-2.6 known ---- IPSa2ps 0.5.11-2.6 known ---- IPSaalib 0.5.11-2.6 known ---- paulj at opensolaris:~$ pfexec pkg list -a | grep SUNW | head -5 SUNW1394 (dev) 0.5.11-0.105 installed ---- SUNW1394 (opensolaris.org) 0.5.11-0.101 known u--- SUNW1394h (dev) 0.5.11-0.105 known ---- SUNW1394h (opensolaris.org) 0.5.11-0.101 known u--- SUNWDTraceToolkit (dev) 0.5.11-0.105 installed ----