### List support statements for installed packages with dnf supportinfo Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/al2023-support-statements/README.md Use the dnf supportinfo command with the --show installed filter to list support statements for installed packages. Available filters are: all, supported, unsupported, installed, available. The output shows each package with its version, state, support status, end-of-life date, and support statement. ```plain $ dnf supportinfo --show installed acl 2.3.1-2.amzn2023.0.2 installed supported 2028-03-15 Amazon Linux 2023 end-of-life acpid 2.0.32-4.amzn2023.0.2 installed supported 2028-03-15 Amazon Linux 2023 end-of-life alternatives 1.15-2.amzn2023.0.2 installed supported 2028-03-15 Amazon Linux 2023 end-of-life amazon-ec2-net-utils 2.3.0-1.amzn2023.0.2 installed supported 2028-03-15 Amazon Linux 2023 end-of-life amazon-linux-repo-s3 2023.0.20230315-1.amzn2023 installed supported 2028-03-15 Amazon Linux 2023 end-of-life amazon-rpm-config 228-3.amzn2023.0.2 installed supported 2028-03-15 Amazon Linux 2023 end-of-life amazon-ssm-agent 3.1.1927.0-1.amzn2023 installed supported 2028-03-15 Amazon Linux 2023 end-of-life ``` -------------------------------- ### Add GRUB settings to /etc/default/grub Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/Release-Notes-Amazon-Linux-2023.0.2023.0322.0.md Add these lines to /etc/default/grub before upgrading from AL2023 RC1 or earlier to avoid a boot order issue when getting the kernel update. ```plaintext GRUB_DEFAULT=saved GRUB_UPDATE_DEFAULT_KERNEL=true ``` -------------------------------- ### Install zram-generator packages with dnf Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/Release-Notes-Amazon-Linux-2023.2.20230920.md Installs the zram-generator and zram-generator-defaults packages using the dnf package manager. This feature is available on other instance types but is not enabled by default on instance types with greater than 800 MB of RAM. ```bash dnf install -y zram-generator zram-generator-defaults ``` -------------------------------- ### dnf supportinfo --help output Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/al2023-support-statements/README.md Shows the command-line options for the dnf supportinfo plugin, including --pkg, --showxml, and --show with its allowed values. ```bash $ dnf supportinfo --help Supportinfo command-specific options: --pkg PACKAGE Display support statements for a package --showxml Generate support info XML for a package --show {all,supported,unsupported,installed,available} Display support statements for packages ``` -------------------------------- ### dnf supportinfo --pkg php8.1 --showxml output Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/al2023-support-statements/README.md Generates the support_info.xml for the php8.1 package, showing the XML structure with package_support, statements, and package details. ```xml $ dnf supportinfo --pkg php8.1 --showxml PHP 8.1 has security support until November 2025 Support period for PHP 8.1 differs from the main distribution end-of-life date. https://www.php.net/supported-versions ``` -------------------------------- ### dnf supportinfo --pkg php8.1 output Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/al2023-support-statements/README.md Displays support information for the php8.1 package, showing its state, support status, support periods, and related details. ```bash $ dnf supportinfo --pkg php8.1 Name : php8.1 Version : 8.1.14-1.amzn2023.0.2 State : available Support Status : supported Support Periods : from 2023-03-15 : supported : from 2025-11-24 : unsupported Support Statement : PHP 8.1 has security support until November 2025 Link : https://www.php.net/supported-versions Other Info : Support period for PHP 8.1 differs from the main distribution end-of-life date. Package Note : Upstream end-of-life for PHP 8.1 (php8.1) is 2025-11-24 ``` -------------------------------- ### CloudFormation template to launch latest Amazon Linux 2023 AMI Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/README.md Use this CloudFormation template to launch the latest Amazon Linux 2023 AMI by referencing the public Systems Manager parameter for the AMI ID. The template defines an EC2 instance resource with the ImageId set to the parameter value. Replace the AMI alias if needed; available aliases include al2023-ami-kernel-6.1-arm64 and al2023-ami-minimal-kernel-6.1-arm64 for arm64. ```yaml # Use public Systems Manager Parameter Parameters: LatestAmiId: Type: 'AWS::SSM::Parameter::Value' Default: '/aws/service/ami-amazon-linux-latest/al2023-ami-kernel-6.1-arm64' Resources: Instance: Type: 'AWS::EC2::Instance' Properties: ImageId: !Ref LatestAmiId ``` -------------------------------- ### dnf supportinfo --pkg glibc output Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/al2023-support-statements/README.md Displays support information for the glibc package, showing its state, support status, support periods, and the Amazon Linux 2023 end-of-life statement. ```bash $ dnf supportinfo --pkg glibc Name : glibc Version : 2.34-52.amzn2023.0.2 State : installed Support Status : supported Support Periods : from 2023-03-15 : supported : from 2028-03-15 : unsupported Support Statement : Amazon Linux 2023 end-of-life Link : https://aws.amazon.com/amazon-linux-ami/faqs/ Other Info : This is the support statement for AL2023. The end-of-life of Amazon Linux 2023 is : March 2028. From this point, the Amazon Linux 2023 packages will no longer receive : any updates from AWS. ``` -------------------------------- ### Pull Amazon Linux container image from Amazon ECR Public Source: https://github.com/amazonlinux/amazon-linux-2023/blob/main/README.md Authenticate the Docker client to the Amazon Linux Public registry and pull the Amazon Linux container image. Authentication tokens are valid for 12 hours. ```bash aws ecr-public get-login-password --region us-east-1 | docker login --username AWS --password-stdin public.ecr.aws ``` ```bash docker pull public.ecr.aws/amazonlinux/amazonlinux:latest ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.