[Bug 296467] pkg upgrade installs unrelated, unnecessary other packages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Jul 2026 01:46:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296467 --- Comment #11 from Mark Millard <marklmi26-fbsd@yahoo.com> --- (In reply to wbe from comment #10) For: - pkg upgrade -f $(pkg ... | grep ...) + pkg upgrade -f `pkg ... | grep ...` Both notations are valid in /bin/sh . In scripts I normally use $(...) but interactively I tend to use `...` unless nesting is involved. Glad things are working. Sorry for the various typos. "You're welcom to keep this open . . .": I cannot change the status of your bugzilla submittals. You can close it at will. The material here could be referenced in another bugzilla submittal if needed. One has to get into the comments sufficiently to actually learn the type of context at issue: likely confusing. A note: While various pkg commands by default do an implicit "pkg update" to get the information about the upstream status of the upstream repository, if such a pkg update for the local repository (explicit or implicit) does not happen, pkg then works based on the local possibly-out-of-date information when dealing with that specific local repository. Thus it is possible to have 2 local repositories that point to the same upstream repository but that disagree about the status of the upstream repository: "pkg update" for just one local repository will not update the status recorded in the other local repository. It is generally best to avoid having multiple local repositories referencing the same upstream repository --instead of trying to keep the 2 or more local "pkg update" status's synchronized because of having a common upstream repository. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.