Skip to content

Commit fda7265

Browse files
Update Docker Documentation to Use DNF5 for Fedora Installation with DNF3 instructions as backup
## Description With the widespread adoption of DNF5, I propose updating the Docker installation documentation to reflect modern package management standards on Fedora. I noticed a previous attempt to do DNF5 documentation (referencing #21037) ended in failure because the addrepo command was used incorrectly, referencing an older DNF3-4 notation instead of proper DNF5 `addrepo --from-repofile=` notation. I have corrected this mistake and suggest this quick documentation update since Fedora 42 will be in beta soon, encouraging more users to update to 41/42, where DNF5 will be the standard format going forward. I have also included the older command for legacy systems so that both cases are covered. I tested this change on a Fedora 41 KDE VM, and it works as expected. Since DNF5 is a complete rewrite in C++, replacing the Python-based DNF3/4, it offers improved performance and memory efficiency. Updating the documentation will help prevent confusion for users writing installation scripts while ensuring compatibility with the latest Fedora releases. ## Requested Review Please double-check to verify that I completed the URL correctly following Fedora's documentation standards, so it will be formatted properly on the website! Thanks!
1 parent 93f7b24 commit fda7265

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

content/manuals/engine/install/fedora.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,16 @@ Docker from the repository.
8181
#### Set up the repository
8282

8383
Install the `dnf-plugins-core` package (which provides the commands to manage
84-
your DNF repositories) and set up the repository.
84+
your DNF repositories) and set up the repository. Note that Fedora 41 and later
85+
primarily use DNF5. For Fedora 40 and earlier, please use the commands below
86+
made specifically for Fedora <=40.
87+
88+
```console
89+
$ sudo dnf -y install dnf-plugins-core
90+
$ sudo dnf config-manager addrepo --from-repofile={{% param "download-url-base" %}}/docker-ce.repo
91+
```
92+
93+
For earlier versions such as Fedora 40 or earlier that use DNF4 or DNF3:
8594

8695
```console
8796
$ sudo dnf -y install dnf-plugins-core

0 commit comments

Comments
 (0)