On 04/14/12 06:44, dnyaneshwar pawar wrote:
Hello All,
I am facing a problem while installing a package.
Below are the details-
----------------------------------------------------------------------------------------------------------
1) I have a machine with Oracle Solaris 11 GA installed on it.
2) I have a "dny-package.p5p" having -
package :- my-package
version of my-package :- *1.0.0*
publisher :- my-publisher
3) On my machine i have set a network repository (http://host2.com:100000/)
with same publisher name (my-publisher). This repository contains-
package :- my-package
version of my-package :- *2.0.0*
publisher :- my-publisher
4) I want install *1.0.0* version of *my-package *on same machine.
a) So i fired " *pkg install -g dny-package.p5p my-package* " command.
This command does not throw any error.
It actually installs my-package of version *2.0.0*.
( but i am expecting the expecting the installed package to be of
version *1.0.0* )
b) if i use complete FMRI of my-package (
pkg://my-publisher/[email protected],5.11:20120414T054037Z ), it succeeds.
The expected version of my package gets installed.
i used " *pkg install -g dny-package.p5p
pkg://my-publisher/[email protected],5.11:20120414T054037Z* ".
-------------------------------------------------------------------------------------------------------------
*So my questions are -
**Is it like "-g" of **"pkg install" is not getting honoured properly? *
*Is the behaviour in 4-a above correct? **If yes, what is the use case for
it?
Is there any way to install older version of package without using complete
FMRI?
It would be great if any of the Experts could share thoughts on this. or
send some pointer/documents on this.*
This is working as expected. The -g option adds it as a repository which
has content. It doesn't prefer the content in the -g repo over the
content in any existing repos. I believe publishers in the -g repo which
aren't already configured in the publisher search order are added at the
end of the publisher ranking, not the beginning. (That's just an fyi
since that isn't the case in this situation.)
You don't have to use the full fmri in this situation, one that's
unambiguous would be enough I believe. So pkg install my-package@1
should work.
Hth,
Brock
Thanks,
-Dnyaneshwar
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss