Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #186222
| From | Felix Miata <mrmazda@earthlink.net> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: want pinning with examples to prevent unwanted package(s) from being installed |
| Date | 2017-08-31 09:30 +0200 |
| Message-ID | <uks5j-2El-9@gated-at.bofh.it> (permalink) |
| References | <ukqPT-1WF-7@gated-at.bofh.it> <ukrCi-2fq-11@gated-at.bofh.it> |
| Organization | less than infinite |
Dejan Jocic composed on 2017-08-31 08:51 (UTC+0200): > 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. > Not sure that I understand, because man page gives enough examples. To start with, the question "which man page" needed to be solved. > Like: > P < 0 > prevents the version from being installed > So, for preventing some package to be installed: > Package: somepackage > Pin: origin "" > Pin-Priority: -1 I never saw an example that wasn't part of a group that included multiple release names, none with the null string for origin. > 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. Now that I see that apt_preferences is the relevant doc, I don't see it as "well" explained. "The file" isn't given a name. There is no "file" that seems applicable to locking anything in in /etc/apt/, though there is an empty directory "/etc/apt/preferences.d/", which to me doesn't imply anything to do with locking. I gave it several stabs. I created /etc/apt/preferences.d/1grub.pref that eventually reached the following state: Package: grub Pin: origin "" Pin-Priority: -1 Package: grub2 Pin: origin "" Pin-Priority: -1 Package: grub-common Pin: origin "" Pin-Priority: -1 Package: grub2-common Pin: origin "" Pin-Priority: -1 Package: os-prober Pin: origin "" Pin-Priority: -1 Package: grub-pc Pin: origin "" Pin-Priority: -1 Package: grub-pc-bin Pin: origin "" Pin-Priority: -1 Package: grub-gfxpayload-lists Pin: origin "" Pin-Priority: -1 I'm still getting told the following will be installed: grub-common grub-gfxpayload-lists grub-pc grub-pc-bin grub2-common os-prober This is a multiboot system, so no space-wasting, updates time-wasting bootloader is needed or wanted on the installation making this insistence. :-( -- "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/
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
want pinning with examples to prevent unwanted package(s) from being installed Felix Miata <mrmazda@earthlink.net> - 2017-08-31 08:10 +0200
Re: want pinning with examples to prevent unwanted package(s) from being installed Dejan Jocic <jodejka@gmail.com> - 2017-08-31 09:00 +0200
Re: want pinning with examples to prevent unwanted package(s) from being installed Felix Miata <mrmazda@earthlink.net> - 2017-08-31 09:30 +0200
Re: want pinning with examples to prevent unwanted package(s) from being installed Cindy-Sue Causey <butterflybytes@gmail.com> - 2017-08-31 16:30 +0200
Re: want pinning with examples to prevent unwanted package(s) from being installed Cindy-Sue Causey <butterflybytes@gmail.com> - 2017-09-01 00:40 +0200
Re: want pinning with examples to prevent unwanted package(s) from being installed Dejan Jocic <jodejka@gmail.com> - 2017-08-31 09:30 +0200
Re: want pinning with examples to prevent unwanted package(s) from being installed Jimmy Johnson <field.engineer@gmail.com> - 2017-09-01 07:10 +0200
csiph-web