pkg upgrade forgot how to upgrade packages?
Miroslav Lachman <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <[email protected]> |
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. 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: 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" and now they all are "deinstalled" and "installed". What was changed and is there some way to log the pkg upgrade events like it was before? We are using this logged events to have some overview about what packages were installed as new dependencies of existing packages and so on. I know it was not perfect even before so I made some homegrown script to track these changes but I still think it would be better if these events will be correctly logged by the pkg itself if the pkg has all the knowledge what is installed before upgrade, what has to be upgraded and what has to be installed as new dependency. Kind regards Miroslav Lachman