pkg_add: how to specify both flavor and branch

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

pkg_add: how to specify both flavor and branch

Thomas L.
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

Reply | Threaded
Open this post in threaded view
|

Re: pkg_add: how to specify both flavor and branch

Stuart Henderson
On 2020-01-25, Thomas L. <[hidden email]> 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 | Threaded
Open this post in threaded view
|

Re: pkg_add: how to specify both flavor and branch

Thomas L.
On Sun, 26 Jan 2020 10:54:25 -0000 (UTC)
Stuart Henderson <[hidden email]> wrote:
> 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.

Thanks, this is the info I was missing. :)