You are not logged in.

#1 2024-07-13 21:19:49

ThatOneCalculator
Member
From: Los Angeles
Registered: 2021-01-15
Posts: 14
Website

Keep package from specified repository in said repository

My /etc/pacman.conf currently looks like this:

[core-x86-64-v3]
Include = /etc/pacman.d/alhp-mirrorlist

[extra-x86-64-v3]
Include = /etc/pacman.d/alhp-mirrorlist

[core]
Include = /etc/pacman.d/mirrorlist

[extra]
Include = /etc/pacman.d/mirrorlist

The -x86-64-v3 packages come from ALHP, which has been working great for me so far. However, there's one package that their build servers have failed to upgrade: zed. While I wait for them to fix that issue, for now I have done

sudo pacman -S extra/zed

Which works fine, but when doing

sudo pacman -Syu

it tries to fall back to the extra-x86-64-v3 version, resulting in

:: Starting full system upgrade...
warning: zed: downgrading from version 0.143.7-1 to version 0.137.5-2.1
resolving dependencies...
looking for conflicting packages...

Package (1)          Old Version  New Version  Net Change  Download Size

extra-x86-64-v3/zed  0.143.7-1    0.137.5-2.1    3.43 MiB      30.32 MiB

Total Download Size:    30.32 MiB
Total Installed Size:  122.12 MiB
Net Upgrade Size:        3.43 MiB

Is there anything I can do to tell pacman to check extra for zed?

Offline

#2 2024-07-14 12:22:06

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 13,038

Re: Keep package from specified repository in said repository

No, pacman stops searching when it has found zed in extra-x86-64-v3 and doesn't look at lower listed repos .

The best you can do is probably to add zed to your ignore list so pacman won't try to update it .


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2024-07-14 13:03:59

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,482
Website

Re: Keep package from specified repository in said repository

Are you really running 'pacman -Syu'? I'd expect to see

:: Starting full system upgrade...
warning: zed: local (0.143.7-1) is newer than extra-x86-64-v3 (0.137.5-2.1)
there is nothing to do

rather than a downgrade, which would require you to run 'pacman -Syuu'.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2024-07-14 14:35:33

ThatOneCalculator
Member
From: Los Angeles
Registered: 2021-01-15
Posts: 14
Website

Re: Keep package from specified repository in said repository

Sorry about that – it was -Syuu. Although even with -Syu it doesn't check extra for upgrades.

Offline

#5 2024-07-14 14:39:18

Scimmia
Fellow
Registered: 2012-09-01
Posts: 12,182

Re: Keep package from specified repository in said repository

So you're specifically telling it to downgrade then are surprised when it downgrades?

But, as was said, a higher priority repo shadows a package completely for updates. Nothing you can do with that.

Offline

#6 2024-07-14 14:40:39

ThatOneCalculator
Member
From: Los Angeles
Registered: 2021-01-15
Posts: 14
Website

Re: Keep package from specified repository in said repository

Scimmia wrote:

But, as was said, a higher priority repo shadows a package completely for updates. Nothing you can do with that.

Ah, gotcha, that was my question. There's no way to override that for one package?

Offline

#7 2024-07-14 20:23:05

seth
Member
Registered: 2012-09-03
Posts: 59,897

Re: Keep package from specified repository in said repository

Lone_Wolf wrote:

The best you can do is probably to add zed to your ignore list so pacman won't try to update it .

Then follow "pacman --config /path/to/config/w/only/extra.conf -S zed"

Alternatively you could add your own custom local repo w/ repo-add that contains only the zed package and give it the highest priority, but you'll still have to "manually" (rsync-manually, that is) fetch the package into that repo. For a single package that's probably not simplifying anything.

Offline

#8 2024-07-14 20:28:24

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: Keep package from specified repository in said repository

seth wrote:

Then follow "pacman --config /path/to/config/w/only/extra.conf -S zed"

That should not be needed, just `pacman -S extra/zed` would do which the OP already noted they are using.

Last edited by Trilby (2024-07-14 20:28:52)


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#9 2024-07-14 20:31:22

ThatOneCalculator
Member
From: Los Angeles
Registered: 2021-01-15
Posts: 14
Website

Re: Keep package from specified repository in said repository

Trilby wrote:

That should not be needed, just `pacman -S extra/zed` would do which the OP already noted they are using.

Yep, that's what I've been doing so far. Might put in a feature request to pacman for something like

[extra]
Include = /etc/pacman.d/mirrorlist
Prioritize = zed

Since it seems like that doesn't exist yet.

Offline

#10 2024-07-14 20:38:00

ThatOneCalculator
Member
From: Los Angeles
Registered: 2021-01-15
Posts: 14
Website

Re: Keep package from specified repository in said repository

https://gitlab.archlinux.org/pacman/pacman/-/issues/170

Last edited by ThatOneCalculator (2024-07-14 20:42:51)

Offline

#11 2024-07-14 23:25:34

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,482
Website

Re: Keep package from specified repository in said repository

I'm really meh on this idea.   When the v3 repo catches up, you need to adjust your config then reinstall the package to get the v3 version.

It could be useful if you want to run [testing] but never install kernel packages from that repo  (ignoring the Arch partial update policy), so I won't close the request.  I guess it will just sit there for the next decade.

Offline

Board footer

Powered by FluxBB