Summary: | pkgbase: pkg autoremove is removing packages it shouldn't | ||
---|---|---|---|
Product: | Base System | Reporter: | Mina Galić <me> |
Component: | misc | Assignee: | freebsd-pkgbase (Nobody) <pkgbase> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | marklmi26-fbsd, pkgbase |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Mina Galić
2021-03-05 22:46:47 UTC
(In reply to Mina Galić from comment #0) I wonder if the pkg command for automremove should have been using -c to operate in a chroot context instead of using -r, -c making it more likely see a self consistent context? sudo pkg -c /isolates/pkg-auto-remove-bug/root autoremove For reference: -c ⟨chroot path⟩, --chroot ⟨chroot path⟩ pkg will chroot in the ⟨chroot path⟩ environment. (I had to look it up to notice the -c vs -r distinction.) that's a very good point! i should see if pkg -c or pkg -j make any other decisions |