Since a couple of day, everytime I execute a system update with pacman -Syu the rate-mirrors script will run before pacman.
I find this rather strange. Any idea what‘s going on?
weird, I wonder what is this about.
Same thing happening here.
ALPM/pacman hooks?
Hooks can fire before transactions too.
Though the only one for cachyos-rate-mirrors just disables reflector so it would not appear to originate there.
Er - do we mean the cachy one or just rate-mirrors?
Another idea might be aliases or similar I suppose?
type pacman
type 'pacman -Syu'
I do note that the fish config has a similar alias but not for pacman -Syu explicitly;
OK, funny.
I use fish and wrote my own update alias last year. If there is now an „builtin“ alias, maybe mine got overwritten?
I will check later this day.
Thank you for the hint!
Wait.. so is it about pacman -Syu or not?
If you are actually executing something else it would be helpful to know what that is.
I just tried a sudo pacman -Syu and it’s back to only doing the updates, no ranking mirrors. update does both. This is with fish.
It never did.
Can you give us type update ?
As @cscs already asked: are we talking about your personal update alias? Then show us that with type update. Or are we actually we talking about pacman -Syu like the title suggests? Because that would/should/could not really call cachyos-rate-mirrors before doing its job.
I created last year a fish alias update that runs sudo pacman -Syu.
So my chosen thread title is actually not correct and misleading. Sorry for that! (should I edit the title?)
The behavior right now looks more like the update alias mentioned by @cscs
I cannot check right now, because I’m not at home.
I will give an update later.
Probably. Because… well… you do not run pacman -Syu but some alias that does… something
Take your time, no need to hurry.
I would just be happy we could find a solution here, because I still don’t believe the issue lies with pacman -Syu, but probably with some over-automatism baked into Cachy lately. For example, I personally hate the fact that the Cachy team decided to rate the mirrors based on a timer, so I actively put an end to that.
Edit: so yeah, please change the title to “Rate-mirrors runs every time I run ‘update’”, because that is what is actually happening.
Rating mirrors is only necessary when a mirror becomes out of date or non-responsive. It’s just dumb to do it every time you update, well unless your update frequency is once every three months.
Same here:
❯ update
--> Ranking mirrors for arch repository in /etc/pacman.d/mirrorlist...
[...]
==> Done [arch] /etc/pacman.d/mirrorlist
--> Ranking mirrors for cachyos repository in /etc/pacman.d/cachyos-mirrorlist...
[...]
==> Done [cachyos] /etc/pacman.d/cachyos-mirrorlist
:: Synchronizing package databases …
cachyos is up to date
core is up to date
extra is up to date
multilib is up to date
chaotic-aur 661.9 KiB 474 KiB/s 00:01 [----------------------------] 100%
:: Starting full system upgrade …
There is nothing to do
Same question: please give us the output of type update because we still don’t know what your update actually does. update is not a native command but an alias for something.
update is an alias for sudo pacman -Syu.
The updater in CachyOS works without refreshing the mirror list. Paru does too.
Edit: After a (not necessary) restart, it works as expected again.
Edit II: sudo pacman -Syu does what it’s supposed to; update, which I’ve always used as an alias for sudo pacman -Syu, updates the mirror list every time ![]()
Guys the update alias in cachyos-fish-config has done this for over a year. cachyos-config: Improve update alias · CachyOS/cachyos-fish-config@f6e45f5 · GitHub
That seems to be the cause.
It only started happening to me recently.