System update from the console

If we have installed programs from official repositories as well as from AUR repositories. This command will check for updates to packages from distribution repositories as well as packages installed from AUR.
yay -Syyu
this command is identical in operation to
sudo pamac -Syyu
it only additionally checks for updates to AUR packages.
There are times when you need to refresh the mirror server list. It is worth doing it quite regularly (I personally do it once a month or more often), because sooner or later the problem will come back.
sudo pacman-mirrors -g

or

sudo pacman-mirrors -id

graphical interface for mirror servers

1 Like

It’s also possible to simply type ‘yay’. As the ‘yay’ command is ‘yay -Syu’ by default.

1 Like

Of course, but the “-Syyu” option is to force the package databases to be downloaded again.
Console messages

christophe@lenovo-g585 ~ $ yay -Syyu
[sudo] user password christophe: 
:: Synchronizing databases with packages ...
 maboxlinux              7,4 KiB  1062 KiB/s 00:00 [######################] 100%
 core                  169,9 KiB   548 KiB/s 00:00 [######################] 100%
 extra                2015,5 KiB  1896 KiB/s 00:01 [######################] 100%
 community               6,3 MiB  3,32 MiB/s 00:02 [######################] 100%
 multilib              189,4 KiB  2,43 MiB/s 00:00 [######################] 100%
:: Initiating a Full System Update ...
 there is nothing to be done
:: I search databases for updates ...
:: Searching AUR for updates ...
  there is nothing left to do
christophe@lenovo-g585 ~ $

I use ‘pacman -Syyu’ in place of ‘yay’, but the ArchWiki does not always recommend it :

https://wiki.archlinux.org/index.php/Mirrors

1 Like