Re: want pinning with examples to prevent unwanted package(s) from being installed
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, Jun 19, 2018 at 04:23:12AM -0400, Felix Miata wrote: > Jimmy Johnson composed on 2017-08-31 22:03 (UTC-0700): > > > Felix Miata wrote: [...] > > #dpkg-hold 'package-name' > > #dpkg-unhold 'package-name' > > dpkg hold > dpkg-hold > dpkg -hold > dpkg --hold > > All produce command-not-found or unknown option messages (in Buster). Perhaps dlocate is the package you're looking for: tomas@trotzki:~$ apt-file search dpkg-hold dlocate: /usr/sbin/dpkg-hold dlocate: /usr/share/man/man8/dpkg-hold.8.gz Man page credits dpkg-hold with doing more or less what you described. Cheers - -- t -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlsoxJoACgkQBcgs9XrR2kYxWQCcC5DKBnZU56X0UDsTLE1RWw2P IsEAnAkDyd070260cRJL1vK29m8l2UdS =X60r -END PGP SIGNATURE-
Re: want pinning with examples to prevent unwanted package(s) from being installed
Jimmy Johnson composed on 2017-08-31 22:03 (UTC-0700): > 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. > #dpkg-hold 'package-name' > #dpkg-unhold 'package-name' dpkg hold dpkg-hold dpkg -hold dpkg --hold All produce command-not-found or unknown option messages (in Buster). -- "Wisdom is supreme; therefore get wisdom. Whatever else you get, get wisdom." Proverbs 4:7 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/
Re: want pinning with examples to prevent unwanted package(s) from being installed
On 08/30/2017 11:08 PM, 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. #dpkg-hold 'package-name' #dpkg-unhold 'package-name' Cheers, -- Jimmy Johnson Debian Sid/Testing - KDE Plasma 5.8.7 - AMD A8-7600 - EXT4 at sda1 Registered Linux User #380263
Re: want pinning with examples to prevent unwanted package(s) from being installed
On 8/31/17, Cindy-Sue Causeywrote: > On 8/31/17, Felix Miata wrote: >> 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 >> > < snipped for brevity > >> >> 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. > > > I just tracked down a sample I saved for myself during that recent > time period where wpasupplicant was being a pain: > > Package: wpasupplicant > Pin: version 2.5-2+v2.4-3+b1 > Pin-Priority: 1001 > > My apologies, but I'm not able to remember *why* I did it exactly like > that. I'm thinking maybe it was specifically "pinned" to that version > number... maybe. A couple references that may or may not help. I am, yes, noting that they potentially feel a little outdated. * Debian Cheat Sheet; Carlo Wood, March 2007 https://web.archive.org/web/20121024134944/http://carlo17.home.xs4all.nl/howto/debian.html#errata * AptPreferences; Debian Wiki; last modified ~2017.06.30 https://wiki.debian.org/AptPreferences Maybe one or the other has something that will help yet more. I'm still not remembering why I used "1001" when other numbers are equally, if not more so, referenced online. An Internet search for "1001" coincidentally pointed me straight to Stretch's manpages: https://manpages.debian.org/stretch/apt/apt_preferences.5.en.html Stretch and thus Stretch manpages are what I was using at that moment when I successfully pinned wpasupplicant so maybe that's where I picked up that detail. That Archive.org page is being cantankerous for me. You're looking for the heading of "Pinning Errata" if that one doesn't immediately leap down to that heading. Cindy :) -- Cindy-Sue Causey Talking Rock, Pickens County, Georgia, USA * runs with duct tape *
Re: want pinning with examples to prevent unwanted package(s) from being installed
On 8/31/17, Felix Miatawrote: > 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 > < snipped for brevity > > > 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. I just tracked down a sample I saved for myself during that recent time period where wpasupplicant was being a pain: Package: wpasupplicant Pin: version 2.5-2+v2.4-3+b1 Pin-Priority: 1001 My apologies, but I'm not able to remember *why* I did it exactly like that. I'm thinking maybe it was specifically "pinned" to that version number... maybe. I do remember that it was garnered from an example somewhere out on the W-W-W. However they explained their own example, that right there helped me at that time. In fact so much so that my inner geekette became a little more empowered that day. * yippee ki ay* :D Cindy :) -- Cindy-Sue Causey Talking Rock, Pickens County, Georgia, USA * runs with duct tape *
Re: want pinning with examples to prevent unwanted package(s) from being installed
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/
Re: want pinning with examples to prevent unwanted package(s) from being installed
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.
Re: want pinning with examples to prevent unwanted package(s) from being installed
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.
want pinning with examples to prevent unwanted package(s) from being installed
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/