Apt preferences pin: origin local?

I dropped fglrx from my laptop and will return to the free drivers, but xfce4-power-manager does not start. it was a known mistake

I got apt-get source, applied the patch, installed and installed it. Now everything works fine, I reported this debian error. but now I want to keep this package to prevent updating for some time

I know that the awkward way is to break part of the package assembly version. for example 1.0.10-5, and then keep the package versioned:

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

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

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

Is it possible? I can not find it in the docs

+6
source share
3 answers

Using start or now , as the source should work:

 Package: xfce4-power-manager Pin: release o=now Pin-priority: 1001 
+1
source

Directly 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 that this is what you are looking for. I never used a commit to do this, so I'm not sure if this solves your problem.

+1
source

Recent versions of apt (tested on Debian 9.8, stretch) support the installation of local debuts if debate with the same name is not available in the configured repo, in which case the repo version is preferred. For example, after commenting out the appropriate repo from the local apt configuration, this works for me:

  sudo apt install ./packagename_0.0.1_all.deb 

apt needs a ./ prefix or full path to search for a local file.

0
source

Source: https://habr.com/ru/post/907791/


All Articles