#967 Replace DNF with DNF 5
Merged 12 months ago by humaton. Opened 12 months ago by egoode.
egoode/fedora-kickstarts evan-goode/dnf5  into  main

@@ -22,12 +22,6 @@ 

  bootloader --timeout=1 --location=mbr --append="no_timer_check console=tty1 console=ttyS0,115200n8 net.ifnames=0 biosdevname=0"

  

  %packages

- # The default koji Vagrantfile configuration uses rsync to sync files between

- # the vagrant host and the guest.  It uses yum to verify that rsync is present

- # and/or install it if it is not.  It will fail without adding the yum compat

- # layer for dnf

- # TODO: Teach vagrant about dnf

- dnf-yum

  # rsync gets installed when the Vagrant box is first launched on the

  # users setup. This can actually take a bit of time.  Just fold it

  # in to the base box disk image

@@ -1,11 +1,12 @@ 

  # See fedora-container-common.ks for details on how to hack on container image kickstarts

- # This base is a stripped back Fedora image without python3/dnf.

+ # This base is a stripped back Fedora image without python3.

  # If you need that use the standard base image.

  

  %include fedora-container-common.ks

  

  %packages --excludedocs --instLangs=en --nocore --excludeWeakdeps

- microdnf

+ # DNF 5 replaces microdnf in Fedora 39+.

+ dnf5

  

  %end

  

file modified
+3 -3
@@ -1,5 +1,5 @@ 

  # See fedora-container-common.ks for details on how to hack on container image kickstarts

- # This base is a standard Fedora image with python3 and dnf

+ # This base is a standard Fedora image with python3 and dnf5

  

  %include fedora-container-common.ks

  
@@ -7,8 +7,8 @@ 

  rootfiles

  tar # https://bugzilla.redhat.com/show_bug.cgi?id=1409920

  vim-minimal

- dnf

- dnf-yum  # https://fedorahosted.org/fesco/ticket/1312#comment:29

+ dnf5

+ dnf5-plugins

  sudo

  -glibc-langpack-en

  -langpacks-en

file modified
+3 -4
@@ -1,7 +1,7 @@ 

  # Kickstart file for Fedora Toolbox

  

  # See fedora-container-common.ks for details on how to hack on container image kickstarts

- # This base is a standard Fedora image with python3 and dnf

+ # This base is a standard Fedora image with python3 and dnf5

  

  %include fedora-container-common.ks

  
@@ -10,8 +10,7 @@ 

  rootfiles

  tar # https://bugzilla.redhat.com/show_bug.cgi?id=1409920

  vim-enhanced

- dnf

- dnf-yum  # https://fedorahosted.org/fesco/ticket/1312#comment:29

+ dnf5

  sudo

  -glibc-minimal-langpack

  -glibc-all-langpacks
@@ -37,7 +36,7 @@ 

  bc

  bzip2

  diffutils

- dnf-plugins-core

+ dnf5-plugins

  flatpak-spawn

  fpaste

  git

file modified
+2 -3
@@ -1,5 +1,5 @@ 

  # See fedora-container-common.ks for details on how to hack on container image kickstarts

- # This base is a standard Fedora-ELN image with python3 and dnf

+ # This base is a standard Fedora-ELN image with python3 and dnf5

  

  %include fedora-container-common.ks

  
@@ -10,8 +10,7 @@ 

  rootfiles

  tar # https://bugzilla.redhat.com/show_bug.cgi?id=1409920

  vim-minimal

- dnf

- dnf-yum  # https://fedorahosted.org/fesco/ticket/1312#comment:29

+ dnf5

  sudo

  -glibc-langpack-en

  -langpacks-en

file modified
+2 -2
@@ -32,11 +32,11 @@ 

  # Packages

  %packages

  @core

- dnf

+ dnf5

  kernel

  yum

  nfs-utils

- dnf-utils

+ dnf5-plugins

  

  # pull firmware packages out

  -aic94xx-firmware

file modified
+1 -1
@@ -1,5 +1,5 @@ 

  %packages

- microdnf

+ dnf5

  -@standard

  -initial-setup-gui

  -generic-release*

@@ -31,7 +31,7 @@ 

  util-linux

  rpm

  shadow-utils

- microdnf

+ dnf5

  glibc-minimal-langpack

  grubby

  kernel

DNF 5 is the new package manager which should replace DNF and microdnf in Fedora 39+. See https://fedoraproject.org/wiki/Changes/ReplaceDnfWithDnf5.

Definitely worth having dnf5-plugins here, too. Less then a 500kB, and we'll havednf builddep(Mock will be able to do fast bootstrap operations). Also, having dnf copr seems very attractive (e.g. ubi8 and ubi9 have these commands).

1 new commit added

  • Add dnf5-plugins to fedora-container-base.ks
12 months ago

Sure thing, seems reasonable.

rebased onto 41a8487

12 months ago

Pull-Request has been merged by humaton

12 months ago