Press "Enter" to skip to content

Linux: Install automatic package updates for Debian, Ubuntu, Raspi OS & Co.

table of contents

It’s not that simple after all: the package unattended-upgrades, which is available in Debian, Ubuntu, Raspberry Pi OS and practically all other Debian-based Linux distributions, is supposed to bring in daily updates of already installed software packages without user intervention. However, depending on the distribution, adjustments are necessary so that all updates are actually carried out.

With Raspberry Pi OS, for example, the configuration adopted from the Debian project does not work, and without adjustments, no packages are updated at all. On the other hand, not all updates are always desired; Server admins, for example, are only interested in security updates – they want to check feature updates for stability and compatibility first, if they are even considering them.

What is common to all distributions is that unattended-upgrades all package sources updated daily after installation. Which package updates the program then installs differs from distribution to distribution. With Debian and Ubuntu, for example, packages and security updates from the standard distribution are automatically imported. This is specified in the central configuration file /etc/apt/apt.conf.d/50unattended-upgrades, but in different ways.

  • Access to all heise + content
  • exclusive tests, advice & background: independent, critically well-founded
  • Read c’t, iX, MIT Technology Review, Mac & i, Make, c’t photography directly in your browser
  • register once – read on all devices – can be canceled monthly
  • first month free, thereafter € 12.95 per month
  • Weekly newsletter with personal reading recommendations from the editor-in-chief

Start FREE month

Start your FREE month now

Already subscribed to heise +?

Sign up and read

Register now and read articles right away

More information about heise +

Article Source

Disclaimer: This article is generated from the feed and not edited by our team.