Did you know?
Azure Linux 4 drops tdnf: scripts and Dockerfiles that call tdnf must switch to dnf.
Moving to Azure Linux 4? Replace tdnf with dnf in Dockerfiles, cloud-init and CI before you deploy.
- Packages
- Applies to Azure Linux 4
- Last checked
Explained
Azure Linux 2 and 3 used tdnf, a small C package manager. Azure Linux 4 is rebased on Fedora and uses DNF5 instead; dnf and yum are both aliases for it. Microsoft’s release notes tell you to update any scripts, Dockerfiles or CI pipelines that reference tdnf before deploying on Azure Linux 4, because the command no longer exists.
In most cases the change is a simple rename. A Dockerfile line such as RUN tdnf install -y git becomes:
RUN dnf install -y git
Search your repositories with grep -rn tdnf . to find the places to change. Existing repository files in /etc/yum.repos.d/ keep working with DNF5.
Learn more
- Azure Linux 4 Released: Microsoft’s First Fedora-Based Linux Is Generally Available Full guide · Updated Nov 2026
