On 2020-01-25, Thomas L. <tom.longsh...@web.de> wrote:
> Hello,
>
> `pkg_add gnupg` is ambiguous since there is both
> gnupg-1.4.23p3-card-ldap, gnupg-1.4.23p3 and gnupg-2.2.12p0, but neither
> `pkg_add gnupg%2.2`, `pkg_add gnupg--%2.2` nor `pkg_add gnupg%2.2--`
> work. So how do i specify the exact package in this case?
> (I know that `pkg_add gnupg-2.2.12p0` works, but I rather not specify
> the version down to the patch level in my deploy script.)
>
> Kind regards,
>
> Thomas
>
>

You need to know the name of the directory in ports to use this
notation. Formats vary. Here you would use "pkg_add gnupg--%gnupg2".

If you don't have a ports tree installed and need to find the path,
install the package interactively and look for the "@comment pkgpath"
line in /var/db/pkg/$packagename/+CONTENTS, take the last element of
the directory name.


Reply via email to