On 08/28/13 11:21 AM, Harry Putnam wrote:
I'm not getting enough out of man pkg to really get the idea.The real basic stuff yeah ok. But I'm thinking you can do things like list all your installed packages. The man page mentions User commans list and -a as showing installed pkgs. If you wanted to know which editors were installed. How to do that? things like `pkg list editor'.. fails with: no packages matching 'editor' allowed by installed incorporations, or image variants that are known or installed but this: `pkg list vim' shows: NAME (PUBLISHER) VERSION IFO editor/vim 7.2.308-0.151.1.8 i-- So it shows `editor' right under the NAME column. So what exaclty does `pkg' expect in the way of telling it what to search for. Do I have to do each individual pkg and now all the correct names or what?
IPS uses a similar mechanism to the SMF commands, where names are / separated hierarchies going from general category on the left to specific instance on the right, and allows omitting sections from the left side when not needed to make the name unique. It also uses shell style globbing for wildcard patterns, thus: % pkg list 'editor/*' NAME (PUBLISHER) VERSION IFO editor/blog/drivel 3.0.2-5.12.0.0.0.8.0 i-- editor/diagram/dia 0.97.1-5.12.0.0.0.8.0 i-- editor/gedit 2.30.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs 23.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs/gnu-emacs-gtk 23.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs/gnu-emacs-lisp 23.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs/gnu-emacs-no-x11 23.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs/gnu-emacs-x11 23.4-5.12.0.0.0.28.0 i-- editor/gobby 0.4.12-5.12.0.0.0.8.0 i-- editor/gvim 7.3.882-5.12.0.0.0.28.0 i-- editor/hexedit 1.2.12-5.12.0.0.0.28.0 i-- editor/nano 2.0.9-5.12.0.0.0.8.0 i-- editor/vim 7.3.882-5.12.0.0.0.28.0 i-- editor/vim/vim-core 7.3.882-5.12.0.0.0.28.0 i-- editor/xedit 1.2.1-5.12.0.0.0.29.1401 i-- % pkg list '*emacs*' NAME (PUBLISHER) VERSION IFO editor/gnu-emacs 23.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs/gnu-emacs-gtk 23.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs/gnu-emacs-lisp 23.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs/gnu-emacs-no-x11 23.4-5.12.0.0.0.28.0 i-- editor/gnu-emacs/gnu-emacs-x11 23.4-5.12.0.0.0.28.0 i-- (Yes, I'm clearly using a different distro, not OI, thus my available editor packages & versions will differ, but the commands should be the same.)
I'd really like to see a couple of pages full of actual pkg commands with a little brief telling what they do. Is there such a thing somewhere?
https://blogs.oracle.com/srw/entry/a_spoonful_of_syntactic_sugar http://www.oracle.com/technetwork/server-storage/solaris11/technologies/ips-323421.html -- -Alan Coopersmith- [email protected] Oracle Solaris Engineering - http://blogs.oracle.com/alanc _______________________________________________ OpenIndiana-discuss mailing list [email protected] http://openindiana.org/mailman/listinfo/openindiana-discuss
