Re: pkg install -f ... doesn't?

From: Erwan David <erwan_at_rail.eu.org>
Date: Thu, 23 Jan 2025 19:22:25 UTC
Le 23/01/2025 à 20:13, Gary Aitken a écrit :
> On 1/23/25 11:15, Erwan David wrote:
>> Le 23/01/2025 à 18:47, Gary Aitken a écrit :
>
>>> I tried security/py-certbot-apache after checking freshports, which 
>>> says: To add the package, run one of these commands:
>>>          pkg install security/py-certbot-apache
>>>          pkg install py311-certbot-apache
>>>
>>> Why is the "security/" required?
>>
>> with the security you specify the port. You can see it installs
>> py311-* packages that means packages compiled fotr Python3.11 which
>> is the crurrent version. By specifying py39-* you forced packages
>> made for python 3.9 which do not exist anymore in the repositories.
>
> But I didn't specify py39 when I tried again the first time;
> I only specified py:
>
>>> # pkg install py-certbot-apache
>>> Updating FreeBSD repository catalogue...
>>> FreeBSD repository is up to date.
>>> All repositories are up to date.
>>> pkg: No packages available to install matching 'py-certbot-apache' 
>>> have been found in the repositories
>
>
The port security/py-certbot-apache exists. The package 
py311-certbot-apache exists, but the package py-certbot-apache does not. 
And when given the name without a category before, pkg looks for a 
package with the specified name. With the category, it looks for a 
package coming from the specified port