[pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages
- From: Bart Smaalders <
- Subject: [pkg-discuss] Re: Review request -> 17699233 pkg install could have an option to ignore any installed packages
- Date: Fri, 13 Dec 2013 17:43:14 -0800
On 12/13/13 17:15, Edward Pilatowicz wrote:
the only way i can think of to avoid this is to run the solver first.
that's the only way you can compute a solution that accounts for the
existing image constraints. only after you've done that can you start
to trim unnecessary packages from the solution space.
It seems to me that the following needs to be true:
pkg install --exact A B C
builds a plan of the latest version of A, B and C and all their
dependencies consistent with the following:
1) packages with os.install-hold not referenced on the command line
are explicitly kept at their current value as per behavior today
2) no packages are allowed to go backwards unless explicitly listed
on command line, again as per today.
3) packages currently present on the system but not part of the above
solution are marked for rejection.
With care we can also evaluate origin dependencies in this pass.
The above set of possible upgrades and rejections are passed to another
invocation of the solver to determine any need for recursion into zones;
this is needed if parent dependencies are present in any of the packages
We may need to delete packages recursively in the zones if other
packages have dependencies on packages with parent dependencies or
alternatively we could fail the install.
This is a bit subtle to implement, but will have a substantial benefit
to those maintaining large numbers of images, since it allows
republication of admin-defined group packages to completely control the
content of installed systems so long as the new version is installed w/
Bart Smaalders Solaris Core OS
"You will contribute more with Mercurial than with Thunderbird."
"Civilization advances by extending the number of important
operations which we can perform without thinking about them."