Debian - how to forbid a package from being installed?

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

  1. amarildojr

    amarildojr Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    1,989
    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:
    729
  3. amarildojr

    amarildojr Registered Member

    Joined:
    Aug 8, 2013
    Posts:
    1,989
    Location:
    Brasil
Loading...