Re: pkg upgrade forgot how to upgrade packages?

Miroslav Lachman <[email protected]>
Newsgroups gmane.os.freebsd.devel.ports
Message-ID <[email protected]>
On 09/10/2025 13:22, David Wolfskill wrote:
> 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


Now I tried to compare more machines and the strange thing is, that 
sometimes it shows "upgraded" even in the last months and sometimes not.
On the host2 at 2025-07-03 the PHP is logged as upgraded, at 2025-08-26 
almost everything is deinstalled and installed, then at 2025-09-29 
upgraded. Behavior is not consistent across all the machines but is was 
more "upgraded" on all machines in the past. (just comparing numbers of 
logged events "installed" / "deinstalled" / "upgraded" in the log files 
from previous years)

examples from this year from 2 hosts

host1
https://defuse.ca/b/rVbAE8WaLJ0WkDnwJxtn77

host2 (rfc5424 log format)
https://defuse.ca/b/4CESdSDzkxhwngVLsl7Fe9

Kind regards
Miroslav Lachman
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.