After changing repos in /etc/pacman.conf it is best practice to re-sync all package databases asap to ensure system consistency.
Once your system is in a consistent state you can upgrade, downgrade, install, remove … do whatever the hell you want. Just do it in a properely synced, consistent system.
It is safer to force this than to rely on pacman to detect it.
I personally would recommend doing a -Syy separately, directly after making pacman.conf changes. Then do whatever you want, safely.
I disagree with the Arch Wiki on this one. Re-sync is mandatory, it is safer to force it manually than rely on pacman to detect and do it for you.
It is safe to do -Syy if you follow it immediately with -Su. But if you install other software, before you update, it is quite likely that you will not have a “properly synced, consistent system” but a partial update mess.
That assumes you are upgrading / downgrading / installing / removing directly after making repo pacman.conf changes.
This is not always the case. Some people may forget or get sidetracked.
You may not update until the next day, or day after. You may install install AUR packages that are built against newer packages, which would require a rebuild after downgrading … etc. It has the potential to cause a mess.
Change repos => Full Re-Sync.
The important point to get into people’s heads is that changing repos requires a full re-sync. Whether you comine that with another pacman command is moot.
Yes, but if you forget that your local package db is synced and install packages from the repos, that’s not good. Syncing the db is not a problem, installing newest packages on an outdated system is.
That’s why it is recommended always to update after syncing and why the Arch Wiki always says "don’t do -Sy without -Su"… It’s a good rule to follow.
Out of habit i did use -Syy first before i rolled back. So that would cause an issue if a repo changed because it may be the repo that the package originally installed from? Just trying to understand what i don’t.
The only difference between -Sy and -Syy is that the former updates the databases if they need it and the latter forcibly downloads and refreshes all the databases. The risks with using -Syy are the same as using -Sy. Basically, don’t use -Sy without also using -Su at the same time or immediately afterwards unless you know what you are doing.
but then answer n when asked :: Proceed with the installation? [Y/n], that’s the same as running
pacman -Sy
Be careful of that! If you do it, remember to first update (with pacman -Su) before installing anything, because your local package database is already synced, and if you install packages, they will be a newer version on an outdated system, which can break dependencies.
I had tried it earlier from testing. I actually like the menu the way it currently is and i wish they had of left that option also. That’s my only complaint. Otherwise i am very happy with Kde Plasma and how it works.