« Return to Thread: apt pinning to blacklist a package

apt pinning to blacklist a package

by Rob Owens-2 :: Rate this Message:

Reply to Author | View in Thread

I can't figure out what I'm doing wrong...

I want to prevent a particular package from ever being installed.  In /etc/apt/preferences I have:

Package: somepackage
Pin: version *
Pin-Priority: -1

But the package can still be installed by either command:

apt-get install somepackage
apt-get install otherpackage (where 'otherpackage' depends on
'somepackage')

I thought maybe the 'version *' was throwing it off, so I replaced '*' with
the actual version number and the package still gets installed.

Any ideas how to achieve my goal of blacklisting this particular package?

-Rob


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...

 « Return to Thread: apt pinning to blacklist a package