Hi, Peter,

Thanks very much. It works.
I even tried under micro root, it could even install packages to /tmp.
Only that even for installing a single package, it also installed hundred
MBs of depended packages, but anyway, that's what I want to do.

Thanks again.

Jeffrey


于 2013/3/5 6:54, Peter Dennis 写道:
Hi Jeffery,

Have a look at the pkg option: image-create. That allows you to
create an 'image' that can that be used to install packages into.

Example (assuming I have a repo server running on localhost on port
9999 and I want to install a package called 'broken')

$ pkg image-create -p http://localhost:9999 myimage

$ cd myimage
$ pkg -R `pwd` install broken
Packages to install: 1

PHASE ITEMS
Installing new actions 3/3
Updating package state database Done
Updating image state Done
Creating fast lookup database Done
Reading search index Done
Updating search index 1/1


thanks
pete



On 03/05/13 13:34, Jeffrey J Huang wrote:
Hi, Pkg Experts,

I want know for "pkg install", does it have the similar function as
'pkgadd -R'?

For SVR4 package, 'pkgadd -R<dir>' allows to choose a different
root_path other
than '/', and the<dir> could almost be anywhere like "/tmp".

For pkg, although there is '-R<dir>', but it requires a BE there before
install.
But I don't have image rooted there or I could not create a BE when I am
in Solaris Mirco-root state.

So is there any workaround for this to let "pkg install" to install
packages other
base dir than root?

Great Thanks
Jeffrey

_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

_______________________________________________
pkg-discuss mailing list
pkg-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to