- Mastering Linux Security and Hardening
- Donald A. Tevault
- 88字
- 2025-02-24 18:55:03
Updating Debian-based systems
Let's take a look at how to update Debian-based systems:
- On Debian and its many children, including Ubuntu, run two commands, as shown here:
sudo apt update
sudo apt dist-upgrade
- Occasionally, you'll also need to remove some old packages that are no longer needed. How will you know? Easy. When you log in to the system, a message will appear on the command line. To remove these old packages, just run the following command:
sudo apt auto-remove
Next, we will configure auto updates for Ubuntu.