Update your system
Arch Linux based systems
You can fully update/upgrade your main system by using
pacman. Keep in mind, it does not include AUR
$ pacman -Syu
$ yay -Syu
yayor any other AUR Helper) to synchronize the local database with the main repository database.
-yoption updates the local system cache.
-utells the package manager to actually upgrade the packages.
Basically, this whole command synchronizes the local pacman database with the main repository database and then updates the system.
WarningWhen installing packages in Arch, avoid refreshing the package list without upgrading the system.
In practice, DO NOT run
pacman -Sy package_name instead of
pacman -Syu package_name, as this could lead to DEPENDENCY ISSUES.
Debian based systems
You can perform a full system update/upgrade by running this combination of commands:
$ sudo apt update && sudo apt upgrade -y
apt updateoption updates the local cache from the Debian repository to check for new available versions of the installed packages.
apt upgradeis the command that actually updates your Debian system.
-yoption let the
apt upgradecommand to run automatically after the first command finishes successfully.