I'd like to create an Apt preference file with a pin definition that matches packages originating from
The following definition doesn't seem to be doing anything:
Package: * Pin: release o=Google, Inc. Pin-priority: 900
I suspect that the comma is causing problems. How can I escape it?
None of the following have worked:
release o="Google, Inc."
release o='Google, Inc.'
release o=Google\, Inc.
release o=Google\\, Inc.
Curiously, the following does match
Google, Inc. successfully:
release o=Google? Inc.
But this isn't the solution I'm looking for. I want to know how to match
Google, Inc. without resorting to (precarious) wildcards.
$ apt-cache policy | grep -C 1 'Google, Inc.' 500 http://dl.google.com/linux/earth/deb/ stable/main amd64 Packages release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main origin dl.google.com 500 http://dl.google.com/linux/chrome/deb/ stable/main amd64 Packages release v=1.0,o=Google, Inc.,a=stable,n=stable,l=Google,c=main origin dl.google.com $ grep Origin /var/lib/apt/lists/dl.google.com_*_Release /var/lib/apt/lists/dl.google.com_linux_chrome_deb_dists_stable_Release:Origin: Google, Inc. /var/lib/apt/lists/dl.google.com_linux_earth_deb_dists_stable_Release:Origin: Google, Inc.