On 2026-05-24 at 08:23, Antonio Russo wrote:

> On 5/24/26 4:34 AM, Alexis Grigoriou wrote:
> 
>> Hi,
>> 
>> every time there is a kernel update, I need to install the
>> coresponding linux-headers. Is there a way they can be installed
>> automatically?
> 
> Hello Alexis,
> 
> The linux-headers-amd64 package exists for this exact purpose.
> (presumably other architectures have an equivalent).

That will handle the "corresponding" part, but not AFAIK the
"automatically" part - which I parse as meaning "when I install a new
(version of) linux-image-*, linux-headers-* should get installed along
with it, without me needing to do anything extra at install time to make
that happen".

I have yet to manage to think of a way to *ensure* that automation in
all circumstances, for all methods of initiating upgrade.

It just doesn't wind up mattering for me very often in practice, since I
primarily run package upgrades by either

# apt-get dist-upgrade

or

# apt-get install $(apt-mark showmanual | grep "^PATTERN")

where PATTERN can be a number of things depending on which
installed-package subset I want to upgrade, but in this case would be
"linux".

-- 
   The Wanderer

The reasonable man adapts himself to the world; the unreasonable one
persists in trying to adapt the world to himself. Therefore all
progress depends on the unreasonable man.         -- George Bernard Shaw

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to