On Nov 21, 2008, at 11:26 AM, Shawn Walker wrote:
>> pkg uninstall -r bar <- will uninstall foo
>
> This is a gray area; see above.
>
> For example, I sincerely doubt that if the administrator had "Apache
> 2" installed, and then later installed "foo" (which Apache is a
> dependency or part of) and then used "uninstall -r foo" that they
> would want Apache automatically removed, because Apache was
> installed by itself and not ever as part of foo.
ok .. definitely agreed .. so this might point to the need for a
hierarchy then among metaclusters or a prioritization of packages ..
this is a difficult conversation to have without some sort of
visualization so let's say that metaclusters in the example below
begin with "mc-" and packages that were not installed as part of the
metacluster, but have a dependency within the metacluster are denoted
by brackets .. eg [package] .. i guess we should also indicate if
other dependencies exist for a given package .. let's say something
like a '+' so we get something like:
* mc-webcluster
^--- [+apache2] [+openssl]
^--- mod_ssl
^--- mod_wsgi
^--- [python2.6]
^--- django
^--- mod_wsgi
^--- mysql
^--- django
so in this case "pkg install mc-webcluster" installed mod_ssl, django,
mysql and mod_wsgi and made dependencies onto the existing apache2,
openssl, and python2.6 packages .. there are other pre-existing
dependencies on apache2 and openssl
so to me this says that there should be a mechanism to:
(a) uninstall the stuff in the metacluster that we installed but
nothing else (mod_ssl, mod_wsgi, django, mysql)
(b) uninstall the stuff from the metacluster plus the pre-existing
stuff that has no other dependencies (above and python2.6)
(c) uninstall the stuff from the metacluster including the pre-
existing stuff and all their dependencies (eg: the metacluster is the
real reason for the box and everything else should fall in line with
this)
of course you'd want to warn on (c) about everything else that's being
pulled
> However, I could also see someone saying, "yes, really remove
> everything referenced by this package even if it was installed
> separately."
>
> I don't feel comfortable commenting on the rest, other than to say
> that I'm not so certain about a "family tag".
the point here was some mechanism to associate or disassociate things
with a metacluster for easy removal and re-addition
just a thought
.je
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss