Re: How do I lower the priority of a repository?
On 01/28/2016 08:43 PM, Joerg Desch wrote:
> My goal is to lower the priority of a private repository with backports
> lower than the one of jessie-backports (may be 80). I want to use these
> packages before the sponsored packages are uploaded to jessie-backports.
You can set the priority for your local repository with apt_preferences,
e.g.
/etc/apt/preferences.d/local-backports.pref
~~~
Package: *
Pin: release o=local-backports
Pin-Priority: 80
~~~
This requires that you set "Origin: local-backports" in the Release file
of your repository.
E.g. with /home/user/apt.conf
~~~
APT::FTPArchive::Release::Origin "local-backports";
~~~
... you can create working Packages and Release files
$ cd /your/repository
$ apt-ftparchive -c /home/user/apt.conf packages . > Packages
$ apt-ftparchive -c /home/user/apt.conf release . > Release
Reply to: