Re: install default or latest version of php with pkg
"Janky Jay, III" <[email protected]>
| Newsgroups | gmane.os.freebsd.devel.ports |
|---|---|
| Message-ID | <[email protected]> |
Or just set a variable to the preferred/current default version and change that one variable as needed in the future. Is that not an option for some reason? On 10/14/25 12:08PM, Andriy Gapon wrote: > On 14/10/2025 20:47, Moin Rahman wrote: >> >> >>> On Oct 14, 2025, at 19:45, Andriy Gapon <[email protected]> wrote: >>> >>> On 14/10/2025 20:41, Miroslav Lachman wrote: >>>> If you are writing some playbook or scripted setup, you can query >>>> available versions by pkg search, for example: >>>> # pkg search -x '^php8[0-9]-[0-9]' >>>> Sort the results, tail -n1 and you have the latest available >>>> version. Then you can say which PHP extensions to install. >>> >>> I guess that this is the simplest and easiest solution at the moment. >>> Thank you! >>> >> Be aware that the latest php85 is not yet a stable release. :/ > > I'll go with the line before the last then :-) > -- Regards, Janky Jay, III