sudo apt update && sudo apt full-upgrade -y
Here is what the above code is Doing:
1. Update the list of available packages and their versions, but do not install them.
2. Perform a full upgrade. A full upgrade first performs an update and then upgrades any
packages that have been updated in the repository.
3. Automatically install any packages that are needed to perform the upgrade.
4. Automatically remove any packages that are no longer needed.