Regular Linux OS Updates
In a previous post, we installed the Debian GNU/Linux operating system. Keeping systems secure and stable requires regular updates. Below is a quick cheatsheet with commands for Debian- and RHEL-based distributions.
## Debian / Ubuntu
# Update package index
sudo apt update
# List available updates
sudo apt list --upgradable
# Install updates
sudo apt upgrade -y
## RHEL / Rocky Linux / AlmaLinux
# Check for available updates
sudo dnf check-update
# Install all available updates
sudo dnf upgrade -y
Once the updates are complete, schedule a convenient time to reboot the server to apply kernel and core library changes.
sudo shutdown -r now
Read other posts