Trying to learn the one-command-does-all package-updating way. Bit new to Arch and its deriveds. (Just wondering what I’m not grokking, so don’t think this is an inxi-requiring thread =)
I tend to do one garuda-update -a per week, Friday afternoon or Sat morning. Last week, there was afterwards no more updates on offer in Octopi, so I thought it was all I had to do. But this time, a week later, there’s ~68 of them (after garuda-update -a and subsequent immediate reboot), looks like this:
I usually ignore these as actually updating from there just breaks the stuffs
Just believe in upd -a or garuda-update -a
I don’t believe in GUI apps most of the time for this shit
My not so informed guess is that it simply depends on the mirrors, they don’t update themselves all at once, and I read in some other thread that Octopi keeps its own mirror list (no idea if true or not).
My “strategy” about the mirror list is that I try to keep the same ones until they fail, to spare myself the time and their bandwidth.
I check them before an update (with my script, but there’s also milcheck and other alternatives I did not try).
Isn’t this completely un-necessary since the garuda update command uses rate mirrors to refresh the mirrorlist anyway? If you want it to use reflector instead you can just remove the rate mirror from your system.
As you can see the below is garuda’s script for updating mirrorlist if it doesn’t detect rate-mirrors it goes to reflector however from what I have seen reflector is very slow.
if [[ ! -v SKIP_MIRRORLIST ]]; then
# Refresh mirrorlists
if [ -x /usr/bin/rate-mirrors ]; then
echo -e "\n\033[1;33m-->\033[1;34m Refreshing mirrorlists using rate-mirrors, please be patient..🍵\033[0m\n"
# Refresh mirrorlist and make sure it actually contains content. There is a bug in rate-mirrors that creates empty files sometimes.
MIRRORLIST_TEMP="$(mktemp)"
rate-mirrors --allow-root --save="$MIRRORLIST_TEMP" arch --max-delay=21600 >/dev/null &&
grep -qe "^Server = http" "$MIRRORLIST_TEMP" && install -m644 "$MIRRORLIST_TEMP" /etc/pacman.d/mirrorlist && $PACMAN -Syy && DATABASE_UPDATED=true || { echo -e "\033[1;31m\nFailed to update mirrorlist\033[0m"; }
rm -f "$MIRRORLIST_TEMP"
$INT
elif [ -x /usr/bin/reflector ]; then
echo -e "\n\033[1;33m-->\033[1;34m Refreshing mirrorlists using reflector, please be patient..🍵\033[0m\n"
reflector --latest 5 --age 2 --fastest 5 --protocol https --sort rate --save /etc/pacman.d/mirrorlist &&
$INT && $PACMAN -Syy && DATABASE_UPDATED=true || { echo -e "\033[1;31m\nFailed to update mirrorlist\n\033[0m"; }
$INT
fi
fi
If the country flag is really important then I suppose your command makes sense however it would be easier to make it into one wrapper script for yourself and place it in ~/.local/bin so that you can invoke it all with one command