Skip to content

Add Amazon Linux support to installdependencies.sh#4223

Open
igwejk wants to merge 1 commit intoactions:mainfrom
igwejk:igwejk/support-amazon-linux
Open

Add Amazon Linux support to installdependencies.sh#4223
igwejk wants to merge 1 commit intoactions:mainfrom
igwejk:igwejk/support-amazon-linux

Conversation

@igwejk
Copy link

@igwejk igwejk commented Feb 4, 2026

  • Detect Amazon Linux via /etc/os-release ID check
  • Use dnf for Amazon Linux 2023, yum for Amazon Linux 2
  • Fall back to /etc/system-release when /etc/redhat-release is missing

@igwejk igwejk requested a review from a team as a code owner February 4, 2026 13:11
Copilot AI review requested due to automatic review settings February 4, 2026 13:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for Amazon Linux distributions to the dependency installation script. Amazon Linux is detected through /etc/os-release ID checks, and the appropriate package manager (dnf for Amazon Linux 2023, yum for Amazon Linux 2) is selected based on the VERSION_ID field.

Changes:

  • Added Amazon Linux detection via os-release ID="amzn" check
  • Added fallback to /etc/system-release for systems without /etc/redhat-release
  • Updated package manager selection to use dnf for Amazon Linux 2023 and yum for Amazon Linux 2

- Detect Amazon Linux via /etc/os-release ID check
- Use dnf for Amazon Linux 2023, yum for Amazon Linux 2
- Fall back to /etc/system-release when /etc/redhat-release is missing
@igwejk igwejk force-pushed the igwejk/support-amazon-linux branch from 5f9e6ba to 339165e Compare February 4, 2026 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant