OtherCrashOverride
Posts: 582
Joined: Sat Feb 02, 2013 3:25 am

How to blacklist packages?

Mon Jun 17, 2013 7:20 am

Is there a way to blacklist the Mono packages in Raspbian so they do not get inadvertently installed?

User avatar
rpdom
Posts: 17275
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: How to blacklist packages?

Mon Jun 17, 2013 8:51 am

You could try apt pinning.

Putting something like

Code: Select all

Package: *mono*
Pin: version *
Pin-Priority: -1
in a file in /etc/apt/preferences.d should do the trick, I think. See man apt-preferences for how this works.

The Package line will match any package with "mono" in its name (be careful, there may be other packages that have that string in.

The Pin line will match any version of that package.

The Pin-Priority line means never install the matching packages.

Return to “Raspberry Pi OS”