On Tue, Feb 27, 2007 at 08:55:08PM +0100, Robert Millan wrote:
> Anyway, would be nice if Marillat's package versioning didn't override the
> official packages.  This makes using his repository for mencoder impractical.


you can use apt pinning for that

I added this recently in README.Debian

--------------------- on debian-multimedia

Christian Marillat  offers many multimedia-related packages in his repository,
including, for example, 'mencoder' ;
so you may want to add in  /etc/apt/sources.list   the line
  deb http://www.debian-multimedia.org etch main

But! some packages are both in Debian  and in that repository;
If the versions of packages from that repository are newer than
those in Debian, you will substitute them; and this is the case of
mplayer; so, if you do not wish this to happen, you may add
vvvvvvvvvvvv
Package: *
Pin: release o=Unofficial Multimedia Packages
Pin-Priority: 450
^^^^^^^^^^
into /etc/apt/preferences. (This is called "apt pinning").  This will
give preference to a Debian package.  (If you want to give preference
to Christian's package, use Pin-Priority: 550 )


To know if the above works, you can use the command
$ apt-cache policy mplayer
  mplayer:
   Installed : ....
    Candidate : 1.0~rc1-8
    Table de version :
     [version]  [??]
        450 http://www.debian-multimedia.org etch main
 *** [version]  [??]
        500 http://ftp.de.debian.org ustable/main Packages
        100 /var/lib/dpkg/status

Look where the *** are, and what "Candidate:..." says.
(But, do not trust the output [??] in that list: see bug  254820).


Unfortunately, currently (see bug 317186), the following
 "apt package pinning" does not work
vvvvvvvvvvvv
Package: mplayer
Pin: release o=Unofficial Multimedia Packages
Pin-Priority: 450
^^^^^^^^^^

a.


-- 
Andrea Mennucc

"The EULA sounds like it was written by a team of lawyers who want to tell 
me what I can't do, and the GPL sounds like it was written by a human 
being who wants me to know what I can do."
Anonymous,    http://www.securityfocus.com/columnists/420


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to