On 31-08-17, Dejan Jocic wrote: > On 31-08-17, Felix Miata wrote: > > Over an hour I've been searching in vain, apparently using broken > > Google-fu, for > > something using examples to explain how to prevent unwanted package(s) from > > being installed via pinning when apt-mark's hold is being disregarded. > > Anyone > > familiar with an URL that would do this? > > > > In openSUSE, it's a simple process: > > > > zypper al unwantedpackagename[version] > > > > That's all there is to it, other than it also works with wildcards. > > -- > > "The wise are known for their understanding, and pleasant > > words are persuasive." Proverbs 16:21 (New Living Translation) > > > > Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! > > > > Felix Miata *** http://fm.no-ip.com/ > > > > Not sure that I understand, because man page gives enough examples. > Like: > > P < 0 > prevents the version from being installed > > So, for preventing some package to be installed: > > Package: somepackage > Pin: origin "" > Pin-Priority: -1 > > That will prevent all packages with somepackage name to be installed, no > matter of origin. In Pin section, you can use release instead, if you > want to restrict just specific release, but that is all well explained > in man page of apt_preferences with lots of examples. > Eh, was bit sleepy still when I wrote this. Posting before properly waking up should be forbidden. That origin part will prevent only from local site. Use something like Pin: release a=stable instead of it. You can also use name like Pin: release n=stretch. And for package, you can use also version, like Pin: version 2.01.1-1+b2. Or even Pin: version 2.01* to prevent all versions starting with 2.01 to be installed.
Sorry for confusion.