Mastering Linux Security and Hardening
上QQ阅读APP看书,第一时间看更新

Updating Debian-based systems

Let's take a look at how to update Debian-based systems:

  1. On Debian and its many children, including Ubuntu, run two commands, as shown here:
sudo apt update
sudo apt dist-upgrade
  1. 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.