How do I apply an installed, but not running, security update to Amazon Linux 2023?

0

I just started using Amazon Linux 2023. When I connect by SSH, I get this notice:

Updates Information Summary: available
    1 Security notice(s)
        1 Important Security notice(s)
Security: kernel-6.1.55-75.123.amzn2023.x86_64 is an installed security update
Security: kernel-6.1.52-71.125.amzn2023.x86_64 is the currently running version

How do I apply the installed update? I tried rebooting the instance in the console and that didn't do anything. It's unfortunate that the notice doesn't tell me how to fix it. I'm inclined to just ignore it because it's not obvious what to do, but that's surely not what Amazon hopes users will do?

asked 7 months ago847 views
2 Answers
0

I suppose it's temporarily moot because I have a new update notice:

A newer release of "Amazon Linux" is available.
  Version 2023.2.20231011:
Run "/usr/bin/dnf check-release-update" for full release and version update info

Which fortunately does provide instruction on what to do.

But the thing is I did use the "Reboot" function of EC2, at a guess. But the notice in the OP remained. Unless that function doesn't really do a full reboot? It does have the version string you mentioned with uname -a though.

The message I saw isn't the same as that one though, so I'm not sure it's the same issue?

answered 7 months ago
  • Try running sudo update-motd. It should fix this. The MOTD should also auto update after half a day or so later.

0

Usually, it means a new kernel has been applied and you need to reboot. If your uname -a output contains the string 6.1.55-75.123.amzn2023, you are good.

This observation has been logged into AL2023 GitHub under update-motd not run after dnf upgrade #441. From the description, it seems that running sudo update-motd can help.

AWS
EXPERT
Mike_L
answered 7 months ago
profile pictureAWS
EXPERT
reviewed 7 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions