Re: packages with mismatched checksums

From: Gary Aitken <freebsd_at_dreamchaser.org>
Date: Wed, 04 Sep 2024 00:35:21 UTC
On 9/2/24 13:05, ax disroo wrote:
>> On Sep 1, 2024, at 6:19 AM, Gary Aitken wrote:
>> 
>> What is the right way to fix / check a package reported as having 
>> a mismatched checksum, assuming it hasn't been modified?
> 
> Try pkg-check(8) 
> https://man.freebsd.org/cgi/man.cgi?query=pkg-check&apropos=0&sektion=8&manpath=FreeBSD+14.1-RELEASE+and+Ports&arch=default&format=html
...> Check check … # pkg check --checksums --dependencies --dry-run --all 
> --verbose

that reports the problem, but doesn't resolve it.

> Update … # pkg check  --recompute --dependencies --shlibs --all

according to the man page --recompute should only be used when one has
modified the package.  AFIK I haven't touched it, so this would not be
wise.

So the original question still open: what's the right way to fix this?
Reinstall the package using
   pkg install -f foo  ?

Gary