• Re: Is to possible to "pin" based on package origin AND package version

    From Tim Woodall@21:1/5 to Sophoklis Goumas on Tue Feb 18 23:50:01 2025
    On Tue, 18 Feb 2025, Sophoklis Goumas wrote:

    Hello.

    I've started with this:
    $ cat /etc/apt/preferences.d/winehq-v9
    Package: *:any
    Pin: release o="dl.winehq.org", v=9*
    Pin-Priority: 625


    I'm not sure about the quotes, the :all or the * on the version in your example.

    The easiest way to fix these pinning rules is to use apt-cache policy.

    Start with
    Package: *
    Pin-Priority: 625

    and check that it works on your pachage.

    Then add
    Pin: release o=dl.winehq.org

    And check that it's still working.

    Etc until you find where the issue is

    Remember, of course, to check that it doesn't match where it shouldn't
    too.

    apt-mirror@aptmirror19:/mnt/mirror/local (master)$ cat /etc/apt/preferences.d/local-pin-bookworm
    Package: *
    Pin: release o=local debs,n=bookworm,l=local debs
    Pin-Priority: 995
    apt-mirror@aptmirror19:/mnt/mirror/local (master)$ apt-cache policy fuse-overlayfs fuse-overlayfs:
    Installed: 1.14-1~tjw12r1
    Candidate: 1.14-1~tjw12r1
    Version table:
    *** 1.14-1~tjw12r1 995
    995 http://aptmirror.home.woodall.me.uk/local bookworm/main
    amd64 Packages
    100 /var/lib/dpkg/status
    1.10-1 500
    500 http://deb.debian.org/debian bookworm/main amd64 Packages

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tim Woodall@21:1/5 to Tim Woodall on Wed Feb 19 01:20:02 2025
    On Tue, 18 Feb 2025, Tim Woodall wrote:

    On Tue, 18 Feb 2025, Sophoklis Goumas wrote:

    Hello.

    I've started with this:
    $ cat /etc/apt/preferences.d/winehq-v9
    Package: *:any
    Pin: release o="dl.winehq.org", v=9*
    Pin-Priority: 625


    Done some tests.

    Package: *
    Pin: release o=dl.winehq.org,v=9*
    Pin-Priority: 625

    I suspect that that is what you wanted. However, the release file:

    Architectures: i386 amd64 all
    Codename: bookworm
    Components: main
    Date: Sun, 09 Feb 2025 15:54:15 +0000
    Description: WineHQ packages
    Label: winehq
    Origin: dl.winehq.org
    Suite: stable

    There is no version. You'll need to match on codename or suite.

    Try
    Package: *
    Pin: release o=dl.winehq.org,n=bookworm
    Pin-Priority: 625

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Tim Woodall@21:1/5 to Tim Woodall on Wed Feb 19 01:30:01 2025
    On Wed, 19 Feb 2025, Tim Woodall wrote:

    On Tue, 18 Feb 2025, Tim Woodall wrote:

    On Tue, 18 Feb 2025, Sophoklis Goumas wrote:

    Hello.

    I've started with this:
    $ cat /etc/apt/preferences.d/winehq-v9
    Package: *:any
    Pin: release o="dl.winehq.org", v=9*
    Pin-Priority: 625


    Now reread your op. No, I don't believe it's possible to combine a pin
    of a package version and a pin of a release.

    Best I can suggest is pinning individual packages by veraion.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)