Draft
Support dnf-based installs and PATH checks for Azure Linux and RHEL-family hosts#219
Conversation
Copilot
AI
changed the title
[WIP] Update install.sh / uninstall.sh to support azlinux / dnf based distros
Support dnf-based installs for Azure Linux and RHEL-family hosts
Jul 5, 2026
bcho
requested changes
Jul 5, 2026
bcho
requested changes
Jul 7, 2026
Member
There was a problem hiding this comment.
we need to configure package source for az cli https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?view=azure-cli-latest&pivots=dnf @copilot
bcho
requested changes
Jul 7, 2026
bcho
left a comment
Member
There was a problem hiding this comment.
@copilot it still fails on alma linux
INFO: Installing Azure CLI...
INFO: Downloading and installing Azure CLI...
Last metadata expiration check: 0:16:54 ago on Tue 07 Jul 2026 01:36:57 AM UTC.
No match for argument: azure-cli
Error: Unable to find a match: azure-cli
ERROR: Failed to install azure-cli with dnf
Contributor
Author
Contributor
Author
Copilot
AI
changed the title
Support dnf-based installs for Azure Linux and RHEL-family hosts
Support dnf-based installs and PATH setup for Azure Linux and RHEL-family hosts
Jul 7, 2026
Contributor
Author
Copilot
AI
changed the title
Support dnf-based installs and PATH setup for Azure Linux and RHEL-family hosts
Support dnf-based installs and PATH checks for Azure Linux and RHEL-family hosts
Jul 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
install.shanduninstall.shassumed Debian/Ubuntu package tooling, blocking Azure Linux and other dnf-based hosts from installing and removing Azure CLI cleanly.Distro and package-manager detection
apt-getvsdnf.azlinux, Rocky, AlmaLinux, and RHEL support paths./etc/os-releasewithout sourcing it.Install path
/etc/yum.repos.d/azure-cli.repo, then installsazure-cliwith dnf./usr/local/binis missing from the activePATH.systemd-containerto be provisioned outside the installer.Uninstall path
# dnf hosts now use native package operations for Azure CLI dnf install -y azure-cli dnf remove -y azure-cli