On Tue, 16 Jun 2009, Bart Smaalders wrote:

Robert Milkowski wrote:
So for example if I want to uninstall a package A I won't end-up with another 20 packages being installed automatically. I know one can check dependencies in advance but still...


How would this happen?  We don't support require dependencies that
offer a choice; thus uninstall cannot cause other packages to be
installed.

If you install a package, we automatically install its dependencies.
To do otherwise is madness.



Sorry, a type - I meant that if a user tries to uninstall package A it should fail by default if there are other packages which needs to be uninstalled as they depend on A. If all of these packages are provided to pkg uninstall and there are no other packages which will need to be uninstalled due to dependencies then it should proceed.

So lets say there are three packages: A, B and  C where B and C depend on A.

# pkg uninstall A
 Package A is required for packages: B, C
Please provide --with-dependencies option to uninstall those packages as well.

# pkg uninstall --with-dependencies A
uninstalling A, B, C

or there should be an option to force an uninstall without deps (like with rpm):

# pkg uninstall --no-deps A
uninstalling A
WARNING packages: B, C depend on A and are not being uninstalled


pkg fix should be able to fix such a case later on if run.


If user would specify all three packages (in whatever order) then it should just work:

# pkg uninstall A B C
uninstalling A, B, C



--
Robert Milkowski
http://milek.blogspot.com

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

Reply via email to