distributions: distribution package Amazon Linux 2022 not supported

Please add support for Amazon Linux 2022.

Since there is support for Amazon Linux 2, I am hopeful we just need to add this new distribution to the same auto-detection “block” as earlier generations of Amazon Linux.

Github’s page on AL2022 has additional info including a Docker image for testing. 2022 is a tag that’s guaranteed to point to the latest image of this generation so I’m not certain the output of my uname -a will be the same as yours, but in case you need it, mine is:

Linux <DOCKER CONTAINER ID> 5.10.104-linuxkit #1 SMP Thu Mar 17 17:08:06 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 1
  • Comments: 22 (4 by maintainers)

Most upvoted comments

@atsalolikhin-spokeo thank you so much! Lifesaver

I created a github gist of the changes for setup_16.x:

  • gist https://gist.github.com/jlarmstrongiv/d6c4dbeeccc43a592e5f5a580e51359f
  • install curl --silent --location https://gist.githubusercontent.com/jlarmstrongiv/d6c4dbeeccc43a592e5f5a580e51359f/raw/ce59c2247752f5dbb0e8f42c5fd980e9690c6f66/nodejs | bash -

Feel free to git diff to see the changes, as they are similar to the original.

To install the latest nodejs16.x version, use yum install -y nodejs-2:16.*


@riosje while amazonlinux2022 is still in preview, I think it’s beneficial to support so that users and library authors can prepare for the transition.

Hi - between issue #1381 and this issue, it appears that I am in a catch-22, and unable to start testing the move to node18 on amazon linux:

  1. I cannot upgrade to node18 on “amazon linux 2” because of #1381 - it appears that “glibc 2.28 or later” will not be available on amazon linux 2.
  2. I’d like to upgrade to “amazon linux 2022” (yes, even though it’s still at RC and not GA) but then I can’t install any node due to this ticket (#1367)

So… I need either this or #1381 (or both?) fixed. And yet both issues are “CLOSED”!

Anyone else in this quandary and have a way out?

@JesusPaz @riosje

@JesusPaz - will you please reopen this issue?

As @timd73 mentioned, Amazon 2 is not the same thing as Amazon 2022. Amazon recently decided to switch to a year based versioning system and technically, Amazon 2022 is Amazon Linux major version 3.

People have been told to use the above workaround. Example I have been using. https://gist.githubusercontent.com/Nic128/f7af8ce96a75632f83f8fa104090b3ac/raw/dba52c45d93a4c24f2081a14353dcf8749d1cd06/setup_18.x (Gist does not support 2023)

It’s really just adding a detection for AL2022 / AL2023.

# That's a tiny part of the code addition
# Amazon Linux 2023
  if grep -q '"Amazon Linux 2023"' /etc/os-release; then
    DIST_VERSION=8
  fi

Hello guys, Amazon Linux 2022 is still in preview, we will be able to support this version after the GA release.

https://aws.amazon.com/linux/amazon-linux-2022/faqs/ https://docs.aws.amazon.com/linux/al2022/ug/release-cadence.html image

Amazon Linux 2023 is now GA. Can we reopen this ticket?

@riosje I do not think this ticket should be closed when its not fixed.

Hello guys, Amazon Linux 2022 is still in preview, we will be able to support this version after the GA release.

https://aws.amazon.com/linux/amazon-linux-2022/faqs/ https://docs.aws.amazon.com/linux/al2022/ug/release-cadence.html image