On 09/26/11 23:27, Vladimir Marek wrote:
for example I would like to have /usr/bin/ls from nevada 160. Or at
least latest /usr/bin/ls available at the moment from given repository.
I am aware that there is sparc and x86 version.

The intention is to 'import' selected files from one pkg repository to
new pkg repository.

I don't know of an official, documented, supported method off hand, but
this seems to work:

wget -O - http://ipkg.us.oracle.com/solaris11/dev/file/1/`pkg contents -H -o hash 
-a path=kernel/amd64/genunix 
pkg://solaris/system/[email protected],5.11-0.173.0.0.0.0.17656` | gzcat>  
/tmp/genunix


Right, that's similar approach as I found with local (file://)
repository. Find the file by it's hash.

I'm glad I didn't overlook anything!

Any idea how this "interface" will be stable? Are there expected any
changes?

There are no expected changes in this interface at this time, although it is not a committed interface and no guarantees are made.

It is hoped that pkgrecv or pkgrepo will be enhanced in the near future to make it easier to extract specific files or packages.

-Shawn

_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to