Hi Tim,
Thank you for answer.
I could get files by your suggested steps.
Thank you,
Kazuhiko
On 10/23/12 11:22 PM, Tim Foster wrote::
Hi there,
On 10/23/12 12:01 PM, Kazuhiko Maekawa wrote:
1. going to IPS repository directory using 'cd' command
2. grep 'facet.docs.man=true' from all manifest file
3. copy #2 files under 'file' directory in repository
to specific output location
I can do above steps in script via NFS access.
>
>
My question here is whether we can do same thing by pkg or
related commands or not. How can I get specific facet marked
files only without installation ?
Rather than grep, you could use 'pkg contents'. For example:
pkg contents -g <uri> -r -H -o hash -a facet.doc.man=true '*'
You might want additional -o options, such as "-o path" to retrieve the
path of the man page. I'd also be inclined to check that facet.doc.man
really does capture all of the man pages you're interested in (given
that facets describe a namespace, so you might want to include a '*' at
the end)
Rather than use NFS, you could use HTTP if you wanted to (though I'd
expect nfs to be faster) eg:
curl <uri>/file/1/<hash> | gunzip -c > $file
Lastly, using '*' for the FMRI argument to 'pkg contents' might be more
than you want, as it matches all packages in the repository... You might
prefer to pass in a list of package names (perhaps a list retrieved from
pkgrepo list, or pkgrecv --newest)
cheers,
tim
_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss