Re: Why does 'pkg install -A xx' reinstall pkg?

From: Renato Botelho <garga_at_FreeBSD.org>
Date: Mon, 03 Jun 2024 11:29:16 UTC
On 03/06/24 08:21, Renato Botelho wrote:
> On 02/06/24 17:50, Yuri wrote:
>> I saw it many times how 'pkg install -A xx' reinstalls pkg:
>>
>>
>>  > Installed packages to be REINSTALLED:
>>
>>  >        pkg-1.21.3
>>
>>
>>
>>
>> It doesn't explain the reason.
>>
>>
>> Why is such operation ever needed?
>>
>>
>> The package version doesn't change, and there are no dependencies that 
>> change, so why does it need to reinstall pkg?
>>
> 
> Do you have multiple pkg repositories on this system?  I've been seeing 
> this behavior to happen for years when more than one repository is 
> configured.
> 
> We always had 2 repositories on pfSense and it was not something trivial 
> to see on FreeBSD systems, but nowadays with pkgbase it's becoming more 
> common so I guess more people will see it happening.

I just found the issue report I opened back in 2017

https://github.com/freebsd/pkg/issues/1613

Someone mentioned about having more than one repo at #bsdports years ago.

-- 
Renato Botelho