Re: Get ${OSREL} at install time

From: Felix Palmen <>
Date: Tue, 18 Apr 2023 09:28:52 UTC
* Yuri <> [20230418 11:07]:
> I was going to suggest something similar with using kern.osreldate and
> parsing it according to
>, e.g.

Just a quick hint: /etc/os-release is preferred because it will still
work correctly when installing to an alternate root (using pkg -c or
pkg -r).

 Felix Palmen <>     {private}
 -- ports committer (mentee) --            {web}
 {pgp public key}
 {pgp fingerprint} 6936 13D5 5BBF 4837 B212  3ACC 54AD E006 9879 F231