Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (0 / 6) |
Uptime: | 57:02:16 |
Calls: | 632 |
Files: | 1,188 |
D/L today: |
28 files (19,987K bytes) |
Messages: | 179,886 |
On Thu, Oct 09, 2025 at 01:09:29PM +0200, Miroslav Lachman wrote:
The update process works the same as before, but in the log files it looks >> like "pkg upgrade" can't distinguish between updating packages and simply
installing new ones.
....
I don't know a lot about the "internal workings" of pkg, but I do use it
(as I update systems "frequently").
This example may be "interesting," as it shows mostly "upgraded," but in
one case (clamav), it shows a deinstall/install pair:
Oct 5 11:09:48 bats pkg[1831]: ca_root_nss upgraded: 3.115_2 -> 3.115_3
Oct 5 11:09:48 bats pkg[1831]: libunistring upgraded: 1.3 -> 1.4
Oct 5 11:09:51 bats pkg[1831]: pango upgraded: 1.56.1 -> 1.56.4
Oct 5 11:09:52 bats pkg[1831]: tiff upgraded: 4.7.0 -> 4.7.1
Oct 5 11:09:52 bats pkg[1831]: clamav-1.4.3_1,1 deinstalled
Oct 5 11:09:54 bats pkg[1831]: curl upgraded: 8.15.0 -> 8.16.0
Oct 5 11:09:54 bats pkg[1831]: pcre2 upgraded: 10.45_1 -> 10.46
Oct 5 11:09:55 bats pkg[1831]: clamav-1.4.3_2,1 installed
The update process works the same as before, but in the log files it > looks like "pkg upgrade" can't distinguish between updating packages andNote the time frames between deinstall and install:
simply installing new ones.
If I remember it correctly, pkg logs events in to messages, but I have
it configured in syslog.conf to log into separate pkg.log. In the past > (for many years) it was logging like this:
# grep mariadb /var/log/pkg.log
Jan 22 21:48:42 host1 pkg[4859]: mariadb106-client upgraded: 10.6.19 -> 10.6.20
Jan 22 21:57:54 host1 pkg[4859]: mariadb106-server upgraded: 10.6.19 -> 10.6.20
Mar 26 21:40:11 host1 pkg[86634]: mariadb106-client upgraded: 10.6.20 -> 10.6.21
Mar 26 21:41:02 host1 pkg[86634]: mariadb106-server upgraded: 10.6.20 -> 10.6.21
But there are almost no "upgraded" messages for the last 6 months. I say "almost" because there are few of the for some packages.
Upgrade of MariaDB looks like this now:
Oct 8 21:14:29 host1 pkg[9522]: mariadb1011-server-10.11.13 deinstalled
Oct 8 21:14:45 host1 pkg[9522]: mariadb1011-client-10.11.13 deinstalled
Oct 8 21:18:37 host1 pkg[9522]: mariadb1011-client-10.11.13_1 installed
Oct 8 21:19:01 host1 pkg[9522]: mariadb1011-server-10.11.13_1 installed
16 "upgraded" messages out of 213 messages in total:As I understand, these message are a shorter form for when
Oct 8 21:14:05 host1 pkg[9492]: pkg upgraded: 2.2.0 -> 2.2.2
Oct 8 21:14:52 host1 pkg[9522]: apr upgraded: 1.7.5.1.6.3_4 ->
1.7.5.1.6.3_5
Oct 8 21:14:54 host1 pkg[9522]: easy-rsa upgraded: 3.2.2,1 -> 3.2.3,1
Oct 8 21:14:54 host1 pkg[9522]: gdbm upgraded: 1.24 -> 1.25
Oct 8 21:15:03 host1 pkg[9522]: git upgraded: 2.49.0 -> 2.51.0
Oct 8 21:15:03 host1 pkg[9522]: libdeflate upgraded: 1.22 -> 1.24
Oct 8 21:15:03 host1 pkg[9522]: libffi upgraded: 3.4.6 -> 3.5.1
Oct 8 21:15:04 host1 pkg[9522]: libgpg-error upgraded: 1.51 -> 1.55
Oct 8 21:15:04 host1 pkg[9522]: libnghttp2 upgraded: 1.65.0 -> 1.66.0
Oct 8 21:15:04 host1 pkg[9522]: libogg upgraded: 1.3.5,4 -> 1.3.6,4
Oct 8 21:15:04 host1 pkg[9522]: mpdecimal upgraded: 4.0.0 -> 4.0.1
Oct 8 21:15:06 host1 pkg[9522]: nettle upgraded: 3.10.1 -> 3.10.2
Oct 8 21:15:06 host1 pkg[9522]: openjph upgraded: 0.21.2 -> 0.21.3
Oct 8 21:15:17 host1 pkg[9522]: screen upgraded: 5.0.1_3 -> 5.0.1_4
Oct 8 21:15:18 host1 pkg[9522]: sqlite3 upgraded: 3.46.1_1,1 -> 3.50.2_1,1 Oct 8 21:15:19 host1 pkg[9522]: sudo upgraded: 1.9.17p1 -> 1.9.17p2
And it's not just about MariaDB, it's a simple example. Another huge > example can be PHP - all extensions were previously logged as "upgraded"The order of the operations, possibly due to tracking dependency
and now they all are "deinstalled" and "installed".
What was changed
and is there some way to log the pkg upgrade eventsMy guess is that more likely would be having messages that
like it was before?
. . .===