El lun, 10 ene 2022 a las 4:10, Jeffrey Walton (<noloa...@gmail.com>)
escribió:

> Hi Everyone,
>
> I am working on OpenBSD 7.0, x86_64. I'm trying to script an install
> of developer tools I use, like GCC and Git. When I attempt to install
> GCC I am prompted:
>
>     $ sudo pkg_add gcc g++
>     quirks-4.54 signed on 2022-01-09T19:08:35Z
>     Ambiguous: choose package for gcc
>     a    0: <None>
>         1: gcc-8.4.0p9
>         2: gcc-11.2.0p0
>
> I've looked over the man page at https://man.openbsd.org/pkg_add, but
> I don't see an option to tell pkg_add to install the latest version of
> the package.
>
> How do I tell pkg_add to install the latest version without prompting me?
>

By the way, talking about packages, it should be noted that stating
'latest version' here is an abuse of notation, as those are two different
ports, and each one already represents its latest package version.

Regards!


> Thanks in advance.
>
>

Reply via email to