Have pkg-rquery only return results for highest priority repo

Jose Quinteiro freebsd at quinteiro.org
Thu May 7 14:38:31 UTC 2020


Setup:

- Stock /etc/pkg/FreeBSD.conf
- The following in /usr/local/etc/pkg/repos/local.conf

local: {
	url: "file:///some/long/path",
	enabled: yes,
	priority: 1,
}

Querying for a package that exists in both repos yields apparently
duplicate results:

$ pkg rquery '%n' dokuwiki
dokuwiki
dokuwiki

Adding the %R pattern disambiguates things:

$ pkg rquery '%R-%n' dokuwiki
FreeBSD-dokuwiki
local-dokuwiki

Is there a way to ask rquery to only return results for the highest
priority repo? (Local in this case).

Thanks,
Jose


More information about the freebsd-ports mailing list