sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y

Category: VPS Management

sudo apt update && sudo apt upgrade -y && sudo apt autoremove -y

Update all packages and remove unused dependencies in one command

Run this immediately after provisioning a new VPS and regularly thereafter. 'update' refreshes the package list, 'upgrade' installs updates, 'autoremove' cleans orphaned packages.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.