On Jun 17, 2009, at 1:22 PM, Glenn Lagasse wrote:
In other words, if I recursively remove foo, which depends on bar, foo
and bar get removed.

That's contradictory to what you initially said.

Sorry if I implied I was talking about pkg(5), but I am not. I was stating how I remembered other systems (such as rpm) to work.

2) pkg uninstall -r foo

This removes foo and bar (as long as bar isn't installed to satisfy a
dependency for some other package)

Not currently for pkg(5).

3) pkg uninstall bar or pkg uninstall -r bar

This removes bar and only bar and warns you that you're potentially
breaking foo

pkg(5) won't let you do the first, but will let you do the second because it will also remove foo.

These scenarios show what I mean by 'top-down'. Foo is the top and bar
is below since foo depends on bar.  You said that pkg uninstall -r bar
would remove foo.  That's backwards to me and what I mean when I say
'bottom-up'.


Right, as Danek said, everyone seems to think of a dependency tree in a different direction. 'leafward' and 'rootward' are probably safer terms ;)

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

Reply via email to