Skip to main content

Updating Your Computer

Keeping your computer up to date with the latest patches helps prevent intruders from gaining access to your computer illicitly.

To update your computer:

  • Using a terminal window, type:
sudo apt-get update -y && sudo apt-get upgrade -y
sudo apt-get autoremove
sudo apt-get autoclean

Enabling automatic updates ensures that your computer installs updates even when you do not install updates manually.

To enable automatic updates:

  • Using a terminal window, type:
sudo apt-get install unattended-upgrades
sudo dpkg-reconfigure -plow unattended-upgrades
info

By default, the unattended-upgrades service only installs security updates automatically. For details on configuring unattended upgrades, see How to Configure Unattended Upgrades, for example.