Skip to content

Commit e86019c

Browse files
ryantimwilsonfacebook-github-bot
authored andcommitted
Manage dnf5 pkgs for Centos >= 11 and ELN distros
Summary: ELN has moved to using dnf5 as the default package manager. This ensures fb_dnf properly manages dnf5 packages for ELN which is soon-to-be Centos11. Differential Revision: D73877561 fbshipit-source-id: d352c4222b35c07a9739e20f6b84f72aef8b694e
1 parent cf62e63 commit e86019c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cookbooks/fb_dnf/recipes/packages.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@
2828
python3-libcomps
2929
}
3030

31-
unless node.fedora? && node['platform_version'].to_i >= 41
31+
if (node.fedora? && node['platform_version'].to_i >= 41) ||
32+
(node.centos? && node['platform_version'].to_i >= 11) ||
33+
node.eln?
34+
dnf_packages += %w{dnf5 dnf5-plugins}
35+
else
3236
dnf_packages += %w{dnf dnf-plugins-core dnf-utils}
3337
end
3438

0 commit comments

Comments
 (0)