Almalinux 9.6 Base image, but base OS is 9.7

Hi all,

I’ve recently come across a very random finding

Our infrastructure is on AWS, and thus we’re using the following AMI for building our base images

ami-08d14d73433b6c28b

As per the describe-image command, this is the output

{
    "Images": [
        {
            "PlatformDetails": "Linux/UNIX",
            "UsageOperation": "RunInstances",
            "BlockDeviceMappings": [
                {
                    "Ebs": {
                        "DeleteOnTermination": true,
                        "SnapshotId": "snap-03cb6add6ff6a6463",
                        "VolumeSize": 4,
                        "VolumeType": "gp3",
                        "Encrypted": false
                    },
                    "DeviceName": "/dev/sda1"
                }
            ],
            "Description": "Official AlmaLinux OS 9.6 x86_64 image",
            "EnaSupport": true,
            "Hypervisor": "xen",
            "ImageOwnerAlias": "aws-marketplace",
            "Name": "AlmaLinux OS 9.6.20250522 x86_64-3c74c2ba-21a2-4dc1-a65d-fd0ee7d79900",
            "RootDeviceName": "/dev/sda1",
            "RootDeviceType": "ebs",
            "SriovNetSupport": "simple",
            "VirtualizationType": "hvm",
            "BootMode": "uefi-preferred",
            "DeprecationTime": "2026-05-10T15:41:00.000Z",
            "ImdsSupport": "v2.0",
            "SourceImageId": "ami-0703fa507d216a8ab",
            "SourceImageRegion": "us-east-1",
            "FreeTierEligible": true,
            "ImageId": "ami-08d14d73433b6c28b",
            "ImageLocation": "aws-marketplace/AlmaLinux OS 9.6.20250522 x86_64-3c74c2ba-21a2-4dc1-a65d-fd0ee7d79900",
            "State": "available",
            "OwnerId": "679593333241",
            "CreationDate": "2025-05-22T11:03:48.000Z",
            "Public": true,
            "ProductCodes": [
                {
                    "ProductCodeId": "3kukoxmnoighcsbjd0u4nq9ds",
                    "ProductCodeType": "marketplace"
                }
            ],
            "Architecture": "x86_64",
            "ImageType": "machine"
        }
    ]
}

However, in one of the EC2 instances, when I look, it says the base image is Almalinux 9.7

I have verified this multiple times, but cannot find the reason why we have the OS release as 9.7 while building on top of the AMI that is supposed to be 9.6

Appreciate any support in this regards !

Nevermind, this was due to running the dnf update command

More information in this thread: DNF updating 9.0 without going to 9.1 possible?