Re: Package naming conventions (?)

From: doug <doug_at_safeport.com>
Date: Mon, 03 Jan 2022 00:53:21 UTC
On Thu, 30 Dec 2021, Mel Pilgrim wrote:

> On 2021-12-30 18:50, Ronald F. Guilmette wrote:
>> In general, full package names end with a version number which consists
>> exclusively of digits, periods, commas, and underscores.  Thus the
>> *generalized* (non-version-specific) package names for all currently
>> installed packages may, generally speaking, be derived thusly:
>>
>>      pkg info | awk '{print $1}' | sed -E 's/-([0-9]|,|_|\.)+$//'
>
> Do this instead:
>
> pkg query '%n'
>
Better is pkg prime-list. The first one just lists all packages. You want 
to install/upgrade from the second list to ensure dependences are correct.