Hi!

Some packages, such as automake and autoconf, come in more versions
within the same flavor.

Certain ports will depend on a particular version of a package, and
that's why more versions of the same package and flavor are
distributed.

As a user, you may be fine with just knowing that the latest version
packaged, gets installed.

And, you may have installation scripts that install the OS for you,
because you prefer the installation to be as uninteractive as it can.

"pkg_add automake" asks you interactively which version you would like
to install. Similarly specifying "noninteractive" and "fuzzy" mode both
don't have the effect of installing the latest version, see pkg_add
output below.

Can "pkg_add automake%latest" be done some way today, is it a planned
feature, or is it intentionally delegated to users to implement it
separately themselves?

Thanks,
Tinker

# pkg_add automake
quirks-2.367 signed on 2017-10-03T11:21:28Z
Ambiguous: choose package for automake
a       0: <None>
        1: automake-1.10.3p8
        2: automake-1.11.6p2
        3: automake-1.12.6p1
        4: automake-1.13.4p1
        5: automake-1.14.1p0
        6: automake-1.15.1
        7: automake-1.4.6p5
        8: automake-1.8.5p9
        9: automake-1.9.6p12
Your choice: ^CFatal error: Caught SIGINT
 at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 40.
# pkg_add automake%stable
quirks-2.367 signed on 2017-10-03T11:21:28Z
Can't find automake%stable
# pkg_add automake%latest
quirks-2.367 signed on 2017-10-03T11:21:28Z
Can't find automake%latest
# pkg_add -I automake
quirks-2.367 signed on 2017-10-03T11:21:28Z
Ambiguous: automake could be automake-1.12.6p1 automake-1.13.4p1 
automake-1.11.6p2 automake-1.9.6p12 automake-1.10.3p8 automake-1.15.1 
automake-1.14.1p0 automake-1.4.6p5 automake-1.8.5p9
# pkg_add -z automake
quirks-2.367 signed on 2017-10-03T11:21:28Z
Ambiguous: choose package for automake
a       0: <None>
        1: automake-1.10.3p8
        2: automake-1.11.6p2
        3: automake-1.12.6p1
        4: automake-1.13.4p1
        5: automake-1.14.1p0
        6: automake-1.15.1
        7: automake-1.4.6p5
        8: automake-1.8.5p9
        9: automake-1.9.6p12
Your choice: ^CFatal error: Caught SIGINT
 at /usr/libdata/perl5/OpenBSD/AddDelete.pm line 40.
#

Reply via email to