On 2016-07-03 19:46, Tinker wrote:
Yeah I know -
My question was, HOW do I make pkg_add auto-choose the newest (or just
any) version really?
E.g. on 5.9, what arguments do you pass to "pkg_add" for "automake",
so that it will choose version 1.15, or anyhow just any version
without asking for interactive user confirmation bc. I don't care?
(http://ftp5.eu.openbsd.org/ftp/pub/OpenBSD/5.9/packages/amd64/)
(This is useful in OS installer scripts that
* should be as non-interactive as possible AND
* are intended to support multiple versions of OpenBSD so you don't
want to specify the version number in the package name (as the
installation then would fail at a future OpenBSD version that not
bundles that particular version anymore)
* (AND any version of the package would be fine).
The issue with just doing "pkg_add" for some package that OpenBSD
bundles in more versions, is that you get an interactive dialog that
asks you which of the many available versions it is that you want. Maybe
I just want the 2.3 series. Or I just want the latest.
This is what my question was about - how do I make pkg_add auto-choose
the newest version for me, or the newest X.Y.*-series version.
Thanks! :) )