Re: Package naming conventions (?)
- Reply: parv/freebsd: "Re: Package naming conventions (?)"
- Reply: doug : "Re: Package naming conventions (?)"
- In reply to: Ronald F. Guilmette: "Package naming conventions (?)"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 31 Dec 2021 04:51:26 UTC
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'