[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: prioritizing deb locations



On 04 Feb 2004, Monique Y. Herman <spam@bounceswoosh.org> wrote:
> Is there any way to tell my system that I only want certain packages to
> come from this source?  I guess my fear is that someone will put a
> bleeding-edge version of a package into the repository I'm using for
> other reasons, and now suddenly I'm pulling this non-official package
> into my system, rather than the one from the official debian repository.
                                                                                                                
You should have a look at "man apt_preferences". The pinning system is not
the most intuitive, but works quite well. Something like the following
should prevent any packages from origin y except for the package x to be
installed.
                                                                                                                
  Package: x
  Pin: origin y
  Pin-Priority: 999
                                                                                                                
  Package: *
  Pin: origin y
  Pin-Priority: -1
                                                                                                                
Regards,
                                                                                                                
Philipp
                                                                                                                

-- 
Philipp Weis          pweis@pweis.com
Freiburg, Germany     http://pweis.com/



Reply to: