Re: Package naming conventions (?)

From: parv/freebsd <parv.0zero9+freebsd_at_gmail.com>
Date: Fri, 31 Dec 2021 05:05:06 UTC
On Thu, Dec 30, 2021 at 6:53 PM 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'
>

Thank you.


 - parv
--