Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

apt preferences pin: origin local?

I have dropped fglrx from my notebook and return to the free drivers but xfce4-power-manager fails to start. it was a known bug

I got apt-get source, apply the patch, build and install it. now all works perfect, I have reported this bug to debian. but now I want to hold this package to prevent upgrades for some time

I know that clumsy way is to bump the package build version part. for example 1.0.10-5 and then hold package by a version:

Package: xfce4-power-manager
Pin: version 1.0.10-5
Pin-priority: 1001

I think the best way is to hold packages by the origin:

Package: xfce4-power-manager
Pin: origin "local origin?"
Pin-priority: 1001

Is this possible? I cant find this in docs

like image 305
puchu Avatar asked Feb 06 '12 19:02

puchu


2 Answers

Using "run" or "now" as the origin should work:

Package: xfce4-power-manager
Pin: release o=now
Pin-priority: 1001
like image 57
niere Avatar answered Sep 20 '22 00:09

niere


Straight from the man page (man 5 apt_preferences):

       This general-form entry in the APT preferences file applies only to
       groups of packages. For example, the following record assigns a
       high priority to all package versions available from the local
       site.

           Package: *
           Pin: origin ""
           Pin-Priority: 999

I believe this is what you are looking for. I have never used pinning to do this, so I'm not sure if this solves your problem.

like image 36
JumpandSpintoWin Avatar answered Sep 20 '22 00:09

JumpandSpintoWin