[Bug 249210] `pkg upgrade -x` installs everything that matches
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Wed Sep 9 13:52:04 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=249210
Bug ID: 249210
Summary: `pkg upgrade -x` installs everything that matches
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: Individual Port(s)
Assignee: ports-bugs at FreeBSD.org
Reporter: lapo at lapo.it
I have a production system where I should upgrade all PHP packages but can't
(currently) upgrade everything, so I tried the following:
# pkg upgrade -x ^php72-
Number of packages to be installed: 960
Number of packages to be upgraded: 45
I was prompted to not only upgrade those matching installed packages (and their
dependencies) but every other (uninstalled) package that matches as well.
>From `man pkg-info` I read:
«Moreover, pkg upgrade will not install new packages, except as required to
fulfil dependencies of the packages listed on the command line. A caller
should ensure that patterns specified as arguments have installed candidates
for matching.»
…which leads me to think that "pkg upgrade" should only upgrade currently
matched packages, not install new ones. (else, it wouldn't be very different
from "pkg install"?)
I'm probably wrong about my assumptions somewhere but looks to me that either
the behavior is unintended or that sentence could be changed to more closely
represent intended behavior.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list