Hmm, no, one should never use a double uu
with pacman
unless explicitly advised by the Manjaro Team.
A double uu
tells pacman
to allow for package downgrades. This may be necessary under certain conditions, but if so, then only for isolated packages. You really wouldnāt want that to apply to the whole update process.
Likewise, one should also not gratuitously use a double yy
, because this is unnecessarily hard on the servers, given that it forces a refresh of all package databases.
If you also have AUR packages, then I would suggest the following⦠
sudo pacman-mirrors -f && sudo pacman -Syu && pamac update && flatpak upgrade
But even then still, be advised that the issue with the pamac
notifier icon may persist until you right-click it and force a refresh. This is just due to how pamac
works, and it is one of the recurring points of criticism against pamac
.
You could indeed turn this into an alias, but whether you add it to ~/.bashrc
or ~/.zshrc
depends on what shell you use.
The default interactive shell for terminal sessions within the graphical environments of either of the three official Manjaro editions ā i.e. Plasma, GNOME and Xfce ā has for a couple of years already been zsh
, but your installation may be older and/or you may have purposely selected bash
as your interactive shell ā as have I myself as well, for that matter.
So perhaps it is best to add it to the bottom of both ~/.bashrc
and ~/.zshrc
, as follows⦠
alias fullupgrade="pacman-mirrors -f && sudo pacman -Syu && pamac update && flatpak upgrade"
And then, after reloading the configuration by source
āing the file or by closing and reopening the terminal, the command fullupgrade
will do exactly what it says on the tin. 