[Bug 289414] pkg upgrade without further arguments breaks the system on upgrades
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 12 Sep 2025 17:11:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289414
Mark Johnston <markj@FreeBSD.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |markj@FreeBSD.org
Status|New |Open
--- Comment #5 from Mark Johnston <markj@FreeBSD.org> ---
It's hard to say exactly what the problem is here without a log of what
happened. There are a few known problems:
- pkg tends to deinstall packages during an upgrade if a dependent shared
library version was bumped; this will be addressed by using the
BACKUP_LIBRARIES option and perhaps making it the default for pkgbase packages
- pkg will sometimes split upgrades into separate deinstall+install steps,
which as you note creates a window where upgrade scripts can fail because
required utilities are missing
There's some ongoing work to resolve both of these issues. Furthermore,
starting with 15.0 we will aim to be more conservative about moving files
between pkgbase packages so as to avoid triggering splits, at least until some
longer-term pkg work has landed which solves the problem more fundamentally.
In 15.0 it will be possible to use freebsd-update to manage pkgbase upgrades,
which will also avoid some of these footguns.
--
You are receiving this mail because:
You are on the CC list for the bug.
You are the assignee for the bug.