apt-pinning debian-multimedia

New to Debian (Or Linux in general)? Ask your questions here!

apt-pinning debian-multimedia

Postby alexpj » 2012-02-14 21:20

Presently Debian.net and Debian-multimedia seem to be going separate ways with libav* with different package naming conventions.

I'd like to try the standard multimedia packages for Debian, but have the ability to include the bits in D-M.org like Handbrake.
D-M seems to use a numerical prefix, like 5:xxx to get priority over the standard debian equiv packages (which have a prefix 4: etc) so pinning doesn't seem to work (for me).

Or is there a way of doing this?

Thanks.
alexpj
 
Posts: 38
Joined: 2006-07-04 23:30
Location: England

Re: apt-pinning debian-multimedia

Postby vbrummond » 2012-02-14 22:16

You might try setting up pinning so debian multimedia packages are never preferred. You will have to clean up what is already installed; However that should be simple.

1. Create and edit /etc/apt/preferences.d/pinning as root. nano /etc/apt/preferences.d/pinning
2. Add this to the file.
Code: Select all
Package: *
Pin: origin www.debian-multimedia.org
Pin-Priority: 1

3. Run apt-get update

Edit: Changed -10 to 100 so packages from multimedia will install when you want but should not preempt packages in the normal repos.
Edit: Changed 100 to 1 as it seemed to want to update some dev packages.
Debian cd image FAQ: https://www.debian.org/CD/faq/ | Always back up your data.
vbrummond
 
Posts: 4217
Joined: 2010-03-02 01:42
Location: USA

Re: apt-pinning debian-multimedia

Postby alexpj » 2012-02-14 22:39

Thank you Sir!

Just trying to work out why that works!

From http://manpages.debian.net/cgi-bin/man.cgi?query=apt_preferences&sektion=5&apropos=0&manpath=Debian+Sid&locale=en
Code: Select all
priority 1
           to the versions coming from archives which in their Release files
           are marked as "NotAutomatic: yes" like the debian experimental
           archive.

       priority 100
           to the version that is already installed (if any).

       priority 500
           to the versions that are not installed and do not belong to the
           target release.

       priority 990
           to the versions that are not installed and belong to the target
           release.
alexpj
 
Posts: 38
Joined: 2006-07-04 23:30
Location: England

Re: apt-pinning debian-multimedia

Postby vbrummond » 2012-02-14 22:41

I am not really versed in pinning. I have only used pinning previous to have systems installed with mixed testing/sid packages. I found 1 to be the best value for this through experimentation. No packages want to install from D-M with dist-upgrade and yet I am successfully able to install handbrake. :)
Debian cd image FAQ: https://www.debian.org/CD/faq/ | Always back up your data.
vbrummond
 
Posts: 4217
Joined: 2010-03-02 01:42
Location: USA

Re: apt-pinning debian-multimedia

Postby stevepusser » 2012-02-15 02:41

The last time I looked at handbrake, it used internal builds of all the codecs, so the system version of ffmpeg/libav* didn't affect it.

The opposite is true for most other multimedia applications.
stevepusser
 
Posts: 3668
Joined: 2009-10-06 05:53

Re: apt-pinning debian-multimedia

Postby alexpj » 2012-02-22 13:44

Thank you both again.
Pinning set at one and all good.

Have taken the plunge and started to manage my /etc with a scm; I had been using comments and so on but this seems a better way.
My (old) preferences file was the first commit!
alexpj
 
Posts: 38
Joined: 2006-07-04 23:30
Location: England

Re: apt-pinning debian-multimedia

Postby alexpj » 2012-03-20 21:32

Bah! It's not working.
I wonder if you would be kind enough to have a look please; it's probably obvious what I'm doing wrong.
vlc has just been offered as an upgrade from d-m.org over d.o . Currently installed 2.0.0-6 is from d.o; and 1:2.0.1-0.0 is from d-m.o
I'm confused as to why the pinning priorities are not appearing.

Thank you.

Code: Select all
apt-cache policy vlc                             (20-03 21:18)
vlc:
  Installed: 2.0.0-6
  Candidate: 1:2.0.1-0.0
  Version table:
     1:2.0.1-0.0 0
        990 http://www.debian-multimedia.org/ unstable/main amd64 Packages
 *** 2.0.0-6 0
        990 http://ftp.uk.debian.org/debian/ unstable/main amd64 Packages
        990 http://ftp.debian.org/debian/ unstable/main amd64 Packages
        100 /var/lib/dpkg/status


Code: Select all
Package: *
Pin: release o=Debian,a=testing
Pin-Priority: 10

Package: *
Pin: release o=Debian,a=unstable
Pin-Priority: 650

Package: *
Pin: release o=Debian,a=experimental
Pin-Priority: 10

Package: *
Pin: origin www.debian-multimedia.org
Pin-Priority: -1
alexpj
 
Posts: 38
Joined: 2006-07-04 23:30
Location: England

Re: apt-pinning debian-multimedia

Postby keverets » 2014-06-13 15:39

alexpj wrote:Bah! It's not working.
I wonder if you would be kind enough to have a look please; it's probably obvious what I'm doing wrong.
vlc has just been offered as an upgrade from d-m.org over d.o . Currently installed 2.0.0-6 is from d.o; and 1:2.0.1-0.0 is from d-m.o
I'm confused as to why the pinning priorities are not appearing.


Ordering mattered for me. The deb-multimedia.org was getting picked up by my "testing" pin first, before the "origin" pin.

Code: Select all
$ apt-cache policy vlc
vlc:
  Installed: 2.1.4-1+b1
  Candidate: 2.1.4-1+b1
  Version table:
     1:2.1.4-dmo3 0
        200 http://www.deb-multimedia.org/ testing/main amd64 Packages
     2.1.4-1+b2 0
        800 http://ftp.ca.debian.org/debian/ unstable/main amd64 Packages
 *** 2.1.4-1+b1 0
        901 http://ftp.ca.debian.org/debian/ testing/main amd64 Packages
        100 /var/lib/dpkg/status
     2.0.3-5 0
        500 http://ftp.ca.debian.org/debian/ stable/main amd64 Packages


Code: Select all
Package: *
Pin: release a=unstable
Pin-Priority: 800

Package: *
Pin: origin *.deb-multimedia.org
Pin-Priority: 200

Package: *
Pin: release a=testing
Pin-Priority: 901


This is with a deb-multimedia line of:

Code: Select all
deb http://www.deb-multimedia.org testing main non-free
keverets
 
Posts: 1
Joined: 2014-06-13 15:25


Return to Beginners Questions

Who is online

Users browsing this forum: lucas7 and 8 guests

fashionable