Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #226942

Re: How do I blacklist a package?

From Dan Ritter <dsr@randomstring.org>
Newsgroups linux.debian.user
Subject Re: How do I blacklist a package?
Date 2020-09-12 22:40 +0200
Message-ID <AOkts-4RR-17@gated-at.bofh.it> (permalink)
References <AOkjL-4Oy-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Stefan Monnier wrote: 
> APT keeps wanting to install `sse2-support` on my dear Thinkpad X30, but
> that machine's CPU does not support SSE2, so the package's installation
> always fails.
> 
> How can I tell APT that it shouldn't *try* to install `sse2-support`?
> 
> I tried to put a "hold" on the package with
> 
>     echo "sse2-support" | dpkg --set-selections
> 
> but it apparently only works to pin an *installed* package to it current
> version, whereas I'd need it to "hold" the "uninstalled" status.
> 
> Any hint?
> 

In /etc/apt/preferences.d/, create no-sse2-support:

# never install this package, ever
Package: sse2-support
Pin: release *
Pin-Priority: -1



-dsr-

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How do I blacklist a package? Stefan Monnier <monnier@iro.umontreal.ca> - 2020-09-12 22:30 +0200
  Re: How do I blacklist a package? Dan Ritter <dsr@randomstring.org> - 2020-09-12 22:40 +0200
    Re: How do I blacklist a package? Stefan Monnier <monnier@iro.umontreal.ca> - 2020-09-13 23:50 +0200
    Re: How do I blacklist a package? Stefan Monnier <monnier@iro.umontreal.ca> - 2020-10-13 00:30 +0200
      Re: How do I blacklist a package? Michael Lange <klappnase@freenet.de> - 2020-10-13 01:20 +0200
  Re: How do I blacklist a package? didier gaumet <didier.gaumet@gmail.com> - 2020-10-13 10:50 +0200
    Re: How do I blacklist a package? Stefan Monnier <monnier@iro.umontreal.ca> - 2020-10-13 16:40 +0200
      Re: How do I blacklist a package? didier gaumet <didier.gaumet@gmail.com> - 2020-10-13 21:30 +0200

csiph-web