Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 26 |
Nodes: | 6 (0 / 6) |
Uptime: | 54:04:54 |
Calls: | 632 |
Files: | 1,187 |
D/L today: |
27 files (19,977K bytes) |
Messages: | 178,944 |
On Oct 14, 2025, at 18:36, Andriy Gapon <avg@FreeBSD.org> wrote:it should be a recent one. E.g., the latest available in ports or the = default version.
=20
=20
I am writing a recipe to configure a system for a particular purpose.
I need to install some version of PHP, doesn't matter much which, but =
I do not want to hardcode any version / prefix like, say, "php83" =(because it may be obsolete or unavailable in a few years).
=20
How could this be achieved with pkg?
=20
--=20
Andriy Gapon
=20
=20
Yes, it's for something that's not in ports.On Oct 14, 2025, at 18:36, Andriy Gapon <avg@FreeBSD.org> wrote:
I am writing a recipe to configure a system for a particular purpose.
I need to install some version of PHP, doesn't matter much which, but it should be a recent one. E.g., the latest available in ports or the default version.
I do not want to hardcode any version / prefix like, say, "php83" (because it may be obsolete or unavailable in a few years).
How could this be achieved with pkg?
I do not know what actually you are trying to do or if I have understood
you correctly. But let's say if I need dokuwiki and I do not want to add specific version I just do `pkg install www/dokuwiki` which will find
out the required php version suffix and install all the php requirements.
But if you need are using this for a custom application which is not in
the tree and you need to install specific php versions for those then I believe you are out of options.
On Oct 14, 2025, at 18:50, Andriy Gapon <avg@FreeBSD.org> wrote:purpose.
=20
On 14/10/2025 19:45, Moin Rahman wrote:
On Oct 14, 2025, at 18:36, Andriy Gapon <avg@FreeBSD.org> wrote:
=20
=20
I am writing a recipe to configure a system for a particular =
but it should be a recent one. E.g., the latest available in ports or =I need to install some version of PHP, doesn't matter much which, =
understoodI do not want to hardcode any version / prefix like, say, "php83" = (because it may be obsolete or unavailable in a few years).I do not know what actually you are trying to do or if I have =
=20
How could this be achieved with pkg?
addyou correctly. But let's say if I need dokuwiki and I do not want to =
requirements.specific version I just do `pkg install www/dokuwiki` which will find
out the required php version suffix and install all the php =
inBut if you need are using this for a custom application which is not =
Ithe tree and you need to install specific php versions for those then =
install default versions?believe you are out of options.Yes, it's for something that's not in ports.
But maybe it could be put into ports with some effort...
=20
Maybe it would be a good idea to have some PHP meta-ports that just =
=20default python3.xx version as dependency and there is python package =
E.g., for Python there is a python3 package that installs a current =
=20
--=20
Andriy Gapon
=20
On Oct 14, 2025, at 19:45, Andriy Gapon <avg@FreeBSD.org> wrote:Then you can say which PHP extensions to install.
=20
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. =
=20Be aware that the latest php85 is not yet a stable release. :/
I guess that this is the simplest and easiest solution at the moment.
Thank you!
=20
On Oct 14, 2025, at 19:45, Andriy Gapon <avg@FreeBSD.org> wrote:Be aware that the latest php85 is not yet a stable release. :/
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!