The y argument tells pacman to update the package list. This is so your computer is downloading the new packages instead of old ones from last time you updated it. The second y tells it to delete the old package list and download it from scratch. This is useful if pacman isn’t working correctly. Maybe the files got corrupted. But it wastes more resources for the repo so it is not recommended as a default.
Oh wow, I have always thought the y stands for “yes to any questions”
turns out it has a --noconfirm
Should have read the man page…
-y, --refresh
Download a fresh copy of the master package databases (repo.db) from the server(s)
defined in pacman.conf(5). This should typically be used each time you use--sysupgrade or -u. Passing two --refresh or -y flags will force a refresh of all
package databases, even if they appear to be up-to-date.
Noob here what is the difference?
also why would an extra but the same character
y
make a difference? Is that common in the arch linux ecosystem?The y argument tells pacman to update the package list. This is so your computer is downloading the new packages instead of old ones from last time you updated it. The second y tells it to delete the old package list and download it from scratch. This is useful if pacman isn’t working correctly. Maybe the files got corrupted. But it wastes more resources for the repo so it is not recommended as a default.
Oh wow, I have always thought the
y
stands for “yes to any questions” turns out it has a--noconfirm
Should have read the man page…
-y, --refresh Download a fresh copy of the master package databases (repo.db) from the server(s) defined in pacman.conf(5). This should typically be used each time you use --sysupgrade or -u. Passing two --refresh or -y flags will force a refresh of all package databases, even if they appear to be up-to-date.
Y is a mnemonic for Refresh, of course!