Hi, Shawn and Alan:

Really appreciate for your replies.

Since our customers may only need 4 of the packages for basic functions, and 
need not download the whole image from our production server,  and to provide 
consistent customer experiences with other platforms,  we decided to use 
separate p5p file for different packages, like rpm file on Linux, and bff file 
on AIX.


In fact, our own installer script can check the dependencies for our product 
packages, and determine which packages need be installed or upgraded, or 
uninstalled. 


So I have one question,   does 'pkg install' command have any options that it 
can simply uncompress the p5p archive, install the package files,  and skip to 
check dependencies, skip to check publisher configurations? 


Thanks,
Ervin.


-----Original Message-----
From: Shawn Walker [mailto:[email protected]] 
Sent: 2011年12月23日 1:41
To: Ervin Yan
Cc: [email protected]
Subject: Re: [pkg-discuss] 'pkg install' performance issue

On 12/22/11 06:53, Ervin Yan wrote:
> Hi,
>
> Recently,  we are moving to support Solaris 11 GA release.  But we met one 
> performance issue and really need your help to improve it.
>
> To be compatible with our previous releases,  we decided not to use package 
> repository, but build our packages with archive format (p5p) which is similar 
> with the .pkg format on Solaris 10.

Ideally, you should be providing a network repository for distribution 
of your software.  That provides the best end user experience for 
Solaris 11 users.

> Thus we run 'pkg install -g Pkgxxx.p5p Pkgxxx' to install packages,  but the 
> command usually take 2+ minutes to finish installation for each package.  Our 
> product have 25+ packages, so it always take 1 hour to install our stack on 
> Solaris 11.
>
> It is really much worse than we do on Solaris 10.
>
> So I really appreciate if you could provide some suggestions or ideas so that 
> we can improve the performance.

On Solaris 10, the pkgadd didn't do much more than extract a tarball 
onto the system for install purposes.

The pkg(1) command however actually verifies the dependencies of the 
entire system are correct and that installing the new package will not 
cause any conflicts for each package operation performed.  That does 
mean there is significantly more overhead per operation.

As a result, as Alan mentioned, you should be installing all of the 
packages you need at the same time.

A .p5p file (pkg(5) package archive) can contain one or more packages. 
So in this case, you should be placing all of your packages into a 
single .p5p file and then performing the install like this:

   pkg install -g /path/to/my.p5p pkg1 pkg2 pkg3 pkg4 pkg5 ...

I would note that the old SVr4 package system supported similar 
functionality.

pkgrecv(1) contains instructions about how to do this.

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

Reply via email to