Bart Smaalders wrote: > thomas palud - Sun Microsystems - Dublin Ireland wrote: > >> Hello, >> >> I am creating a package that must be installed in a specific directory. >> >> To install it in the directory I want I first create an image with 'pkg >> image-create' >> and then install the package with '-R' option, lets say : pkg -R >> /image install package_name >> >> My problem is that the package have dependencies to other packages >> which must not be installed in the image directory (i.e. the package >> must be installed in '/image' and its dependencies in '/' >> >> For information the package which mine depends on is SUNWhea >> >> Is there a way to handle it or should I do thing differently ? >> >> > > I'm afraid I don't understand... > > Are you creating a package that can installed anywhere? > Or must it be installed under /image? > > If the software needs to be under /image, why aren't your paths set > appropriately? > > Right now we don't support linked images; we're focusing on installation > of Solaris itself. > > - Bart > Hello,
The package I am creating can be installed anywhere, it's a requirement. I use the -R option to do so. As far as I can see -R only works if there is an existing image at the location specified by -R. So I create an image where I want the package to be installed, pkg install the package with -R and it works fine. So far so good. Now my package has a dependency with SUNWhea so I create it with a dependency to SUNWhea. However when I install it (still with -R), SUNWhea is installed in the directory of the image I have created which is not what I want. SUNWhea has to be installed in the 'main' image (rooted in '/'). Basically I would like to install a package in a given image but be able to have its dependencies installed in another image. Is it possible at all ? Is it what you call 'linked images' ? Thanks, Thomas _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
