Debian - how to forbid a package from being installed?

Discussion in 'all things UNIX' started by Amanda, Jan 25, 2016.

  1. Amanda

    Amanda Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    2,115
    Location:
    Brasil
    Is this method the correct one if I want to forbid a foo package from being installed on Debian, even if this foo package is a dependency of another package? For example, geoclue is a dependency of Steam. However, I still want to install Steam, but not geoclue. geoclue is also a dependency of webkitgtk, and I want to install webkitgtk but not geoclue.

    The method:

    Code:
    nano /etc/apt/preferences
    Code:
    Package: geoclue
    Pin: origin ""
    Pin-Priority: -1
    I'll try out Debian today, but I need to know if this is right BEFORE installing the system.
     
  2. summerheat

    summerheat Registered Member

    Joined:
    May 16, 2015
    Posts:
    2,199
  3. Amanda

    Amanda Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    2,115
    Location:
    Brasil
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.